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.
Issue
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!
I am defining an API specification as follows:
Currently, the schema automatically uses
anyOffor combining the exception specifications (A, B, C) in the 400 response.Issue
I want to use
oneOfinstead 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
oneOffor the 400 response schemas?Thank you for your help!