spectree icon indicating copy to clipboard operation
spectree copied to clipboard

[Question] Is it possible to specify a BaseModel class as a Redoc Model?

Open jsmoliak opened this issue 2 years ago • 1 comments

In the Redoc Interactive Demo, specific data models can be categorized under the "MODELS" tag. Does spectree provide a method to pull in / mark a BaseModel class as a model for redoc to illustrate?

See The Pet Model as an example.

image

jsmoliak avatar Nov 10 '22 00:11 jsmoliak

I guess it's https://redocly.com/docs/api-reference-docs/specification-extensions/x-tag-groups/.

But I didn't find this in the OpenAPI doc. (correct me if I'm wrong)

For now, you can find the information if you're using swagger.

kemingy avatar Nov 10 '22 02:11 kemingy