openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

feature: add support for constant values

Open robertadkins opened this issue 1 year ago • 4 comments

Closes #1834

See the issue above for a description of a usecase where support for the const keyword is useful. Updated the snapshot tests to verify correct output.

robertadkins avatar Oct 14 '23 00:10 robertadkins

Since const was added in OpenAPI v3.1 (see discussion in #1834), updating this PR to only modify the v3 parsing and tests.

robertadkins avatar Oct 23 '23 14:10 robertadkins

@robertadkins we've decided to merge this pull request in our fork, thanks for this feature!

mrlubos avatar Jan 28 '24 03:01 mrlubos

@robertadkins we've decided to merge this pull request in our fork, thanks for this feature!

Thank you. It really works in the fork.

kovalewvladimir avatar Feb 21 '24 05:02 kovalewvladimir

@kovalewvladimir are there any other issues you're running into with this package?

mrlubos avatar Feb 21 '24 12:02 mrlubos