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
oneOf
I am defining an API specification as follows:
export type MyController = Tspec.DefineApiSpec<{ tags: ['ABC']; basePath: '/abc'; paths: { '/': { post: { operationId: 'abc'; summary: 'abc'; responses: { 201: Success; 400: | ExceptionSpec<A> | ExceptionSpec<B> | ExceptionSpec<C>; }; }; }; }; }>;
Currently, the schema automatically uses anyOf for combining the exception specifications (A, B, C) in the 400 response.
anyOf
I want to use oneOf instead of anyOf, but I can't find a way.
Could you provide guidance on how to modify the schema definitions or adjust the library settings to use oneOf for the 400 response schemas?
Thank you for your help!
The text was updated successfully, but these errors were encountered:
hyeonss0417
No branches or pull requests
I am defining an API specification as follows:
Currently, the schema automatically uses
anyOf
for combining the exception specifications (A, B, C) in the 400 response.Issue
I want to use
oneOf
instead ofanyOf
, but I can't find a way.Could you provide guidance on how to modify the schema definitions or adjust the library settings to use
oneOf
for the 400 response schemas?Thank you for your help!
The text was updated successfully, but these errors were encountered: