francen
6 years agoNew Contributor
Creating a skeleton for documenting response schema
Hi, I am looking for something that helps me documenting an existing API. It seems that swaggerhub only ever generates a "description: Auto generated using Swagger Inspector" and does not analyse the response.
Does a tool exist that generates a schema skeleton from a response ?
Something that, from a response of:
Pets: [{ name: 'bobby', type: 'dog' }]
would generate something like:
components: schemas: xx123: properties: name: type: string type: type: string Pets: type: array items: $ref: "#/components/schemas/xx123"