Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for parsing template strings #944

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bitgopatmcl
Copy link
Contributor

Adds support for parsing basic template strings in packages/openapi-generator.

  • Add template string parsing function

    • Add parseTemplateLiteral function to handle template strings in packages/openapi-generator/src/codec.ts.
    • Update parsePlainInitializer to call parseTemplateLiteral when encountering a template literal.
  • Add tests for template string parsing

    • Add test cases for basic and compound template literals in packages/openapi-generator/test/codec.test.ts.

@bitgopatmcl bitgopatmcl requested a review from a team as a code owner November 6, 2024 16:55
@bitgopatmcl bitgopatmcl marked this pull request as draft November 6, 2024 16:58
@bitgopatmcl
Copy link
Contributor Author

Marked as draft due to commit message format. I opened #945 to try and get conventional commit messages

@bitgopatmcl bitgopatmcl force-pushed the bitgopatmcl/template-string-parsing branch 2 times, most recently from 9a7c4f6 to 6593f85 Compare November 7, 2024 13:58
Adds support for parsing basic template strings in `packages/openapi-generator`.

* **Add template string parsing function**
  - Add `parseTemplateLiteral` function to handle template strings in `packages/openapi-generator/src/codec.ts`.
  - Update `parsePlainInitializer` to call `parseTemplateLiteral` when encountering a template literal.

* **Add tests for template string parsing**
  - Add test cases for basic and compound template literals in `packages/openapi-generator/test/codec.test.ts`.
@bitgopatmcl bitgopatmcl force-pushed the bitgopatmcl/template-string-parsing branch from 6593f85 to 982e60c Compare November 7, 2024 14:01
@bitgopatmcl bitgopatmcl marked this pull request as ready for review November 7, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant