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

More elaborate tests on const keyword #583

Closed
wants to merge 19 commits into from

Conversation

helt
Copy link
Contributor

@helt helt commented Nov 1, 2023

Although touched in #559 to be able to discriminate on types, the implementation is not in line with the spec for const itself.

Specifically, to adhere to the json schema specification section about const, const needs to take precedence over the type of a property.

I also added a failing test, since I have no clue how to deal with it properly...

@stijnvanhulle How shall we continue? (btw husky pre-commit hooks would keep the format clean...)

Copy link

vercel bot commented Nov 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kubb ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2023 9:34am

Copy link

codesandbox-ci bot commented Nov 1, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

koengommers and others added 18 commits November 6, 2023 14:19
docs: fix install command for swagger-tanstack-query plugin
…gerClient

fix: strict type for swagger-client
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
… feature/full-const-support

# Conflicts:
#	packages/swagger-ts/src/generators/TypeGenerator.test.ts
#	packages/swagger-ts/src/generators/TypeGenerator.ts
#	packages/swagger-ts/src/generators/__snapshots__/TypeGenerator.test.ts.snap
@helt
Copy link
Contributor Author

helt commented Nov 22, 2023

Closing because it becomes unmanagable

@helt helt closed this Nov 22, 2023
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.

3 participants