souenzzo
2 years agoVisitor
Recursive schemas and contributions to swagger-ui
Hello, I'm working on a project that uses a spec that is recursive, and due an old issue (from 2017 - see note 1), swagger-ui can't render it.
It can easily reproduced (as in note 3)
I would like to know: I'm the only one using recursive schemas? There is some kind of workaround?
I would like to work on a fix to it. But a few days ago I wrote a PR (note 2) to fix another issue, and it seems to be ignored by the main contributors.
So before write another PR, I would like to ask: how to not be ignored by the community?
1. https://github.com/swagger-api/swagger-ui/issues/3325
2. https://github.com/swagger-api/swagger-ui/pull/8400
3. Enter https://editor-next.swagger.io/ and paste this schema
openapi: 3.0.3 info: {title: "recur", version: "1.0.0"} paths: /pet: put: responses: default: description: Successful operation content: application/json: schema: $ref: '#/components/schemas/Pet' components: schemas: Pet: type: object properties: name: {type: number} myself: {$ref: "#/components/schemas/Pet"}