scalar / openapi-parser

Modern OpenAPI parser written in TypeScript
MIT License
34 stars 1 forks source link

fix(openapi-parser): add TypeScript discriminator strings #159

Closed tmcw closed 1 month ago

tmcw commented 2 months ago

Problem Currently, it's hard to figure out what version of OpenAPI spec you've got, and the spec types are combined together, which makes it hard to interact with the schema object.

Explanation This happens because the types for the documents don't have literal version strings, and the way they're combined mushes them together.

Solution With this PR each OpenAPI version gets a literal version string and the types are combined in a simpler way.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 35e519e9453cdc75eaaa7e0b5c5056991a6867b6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------------------- | ----- | | @scalar/openapi-parser | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR