Setting Swagger fields in `info`
dhruvkb opened this issue · 4 comments
dhruvkb commented
Describe the bug
Swagger provides the option to define many more fields under info
such as:
termsOfService
license
license.name
license.url
contact
contact.email
There is no documented way to set these fields in the generated Swagger file.
Expected behavior
There should be a way to configure these fields.
Python Information (please complete the following information):
- Python v3.10.1
- Spectree v0.6.8
- Falcon v3.0.1
kemingy commented
Thanks for your feedback.
Will find a time to support this.
kemingy commented
Hi @dhruvkb, this feature has been supported.
You can try it with version >= 0.7.0
Check the example:
spectree/examples/falcon_demo.py
Lines 14 to 20 in a2125cc
dhruvkb commented
@kemingy am I correct in understanding that it only supports the following fields?
- title
- version
- description
- termsOfService
- contact
- license
kemingy commented
@dhruvkb Correct. According to the OpenAPI Spec - Info