Contributions
Better Model Documentation / Generation
It would be very useful Models could be given tags so that the documentation could group them the same way that the endpoints are grouped. Then in model generation, instead of all of the models in the model folder, they could be split up into sub folders in the model folder. Not sure if this is swaggerhub Idea, or more for the swagger-generation/swagger-editor repositories, but this is something I would like swaggerhub to do.866Views0likes0Commentsinheritance and discriminators
Tools: - SwaggerHub - OpenApi 3.0 - Spring Boot Situation: I'm using the allOf keyword in order to do inheritence. I have a basic 'ServerResponse' object and two different object that extend it (essentially the body, but it is to be combined with the server response fields). the yaml looks like this ServerResponse type: object properties: error: type: string status_code: type: string Response1 allOf: - $ref: "#/components/schemas/ServerResponse" - type: object properties: someProp1: type: string Response2 allOf: - $ref: "#/components/schemas/ServerResponse" - type: object properties: someProp2: type: string when i generate a java client and combine it with springboot and attempt to make a call using the api, It tells me that it couldnt find the discriminator "". I've looked over the Dog/Cat?lizard example and understand how that works, but is there any way to just use allOf (or oneOf) to simply inherit one class to another without the need for a discriminator?1.2KViews0likes0Comments