Contributions
Re: Auto generating schemas for resources when I don't want it to
I'm not an expert, either . I'm using this [Official Jetbrains Plugin](https://plugins.jetbrains.com/plugin/14394-openapi-specifications). It doesn't seem to give you much in the way of generation options. I'm not actually trying to generate any code (yet) - just documentation and the live test features - but maybe I should try to generate code and see if that helps me figure out where these extra objects are coming from. The names of the objects do seem to line up with the paths. If I generate an object /xyz it will make an object /xyz even if the Response type is my own type. It generates mine, plus its own that is empty. It's strange.543Views0likes0CommentsAuto generating schemas for resources when I don't want it to
I have a question about swagger openapi 3.0.3. I generate a bunch of resources like this: /customers/{customerId}/sites/{siteId}/systems/{systemId}: $ref: './methods/customers/customerId/siteId/systemId/system.yaml' which links to: get: description: 'describe a system' summary: 'describe a system' responses: '200': description: 'system description' response: "application/json": $ref: "../../../../../schemas/SystemInfo.yaml" which links to a schema whose actual contentents aren't very important. What's important is that when the swagger output gets generated, I end up with two objects in the Schemas: - One is named "SystemInfo" which is what I expect - One is named just "system" but I didn't ask for this, it just appeared Sometimes I'll have several paths/methods that return SystemInfo. In that case, it makes SystemInfo, system, system_1, system_2, ... I can't figure out why it's doing this or how to inhibit it. In what situations would a 'schema' object be automatically generated?588Views0likes3Comments