We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
anyOf
oneOf
Swagger supports JSON Schema's anyOf and oneOf.
|
typescript-json-schema
allOf
&
For those people who need a workaround, please check out: #391
The text was updated successfully, but these errors were encountered:
Merge pull request #400 from WoH/uniontype
16e4a60
Add support for OAPI3 Union and Intersection Types (fixes #393)
went live in v2.4.11
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Swagger supports JSON Schema's
anyOf
andoneOf
.oneOf
is analogous to the|
(i.e. TypeScript union)typescript-json-schema
's implementation (but be wary because JSON Schema is not equivalent to Swagger/OpenApi): https://github.com/YousefED/typescript-json-schema/blob/4f2d3da6f3f1ae3e1641b6777324c888a21264a3/typescript-json-schema.ts#L220allOf
is analogous to the&
(i.e. TypeScript intersection/aggregate)typescript-json-schema
's implementation (but be wary because JSON Schema is not equivalent to Swagger/OpenApi): https://github.com/YousefED/typescript-json-schema/blob/4f2d3da6f3f1ae3e1641b6777324c888a21264a3/typescript-json-schema.ts#L660For those people who need a workaround, please check out: #391
The text was updated successfully, but these errors were encountered: