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 OpenAPI v3.1 'type' array syntax #5

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

mkrause
Copy link
Collaborator

@mkrause mkrause commented Jul 4, 2024

Resolves #4

@mkrause
Copy link
Collaborator Author

mkrause commented Jul 4, 2024

Currently this is always generating a Union when there's a type array (with 2+ elements). We could also consider special casing type: ['null', <T>] to generate S.NullOr.

@mkrause mkrause requested a review from imadbakir July 4, 2024 17:48
Copy link
Collaborator

@midhun-pk midhun-pk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks.

Copy link
Collaborator

@imadbakir imadbakir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

@mkrause mkrause merged commit 8b0acca into master Jul 4, 2024
2 checks passed
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.

Support OpenAPI v3.1 type array syntax
3 participants