admin管理员组文章数量:1402807
I have an endpoint defined as such:
def process_document():
"""
Process document
---
definitions:
JobSubmissionResponse:
type: object
properties:
job_id:
type: string
description: Job ID
responses:
500:
description: Fatal Error Occurred
200:
description: Job submitted successfully
schema:
type: object
properties:
job_id:
type: string
description: Job ID
"""
job_id = uuid.uuid4()
return jsonify({
"job_id": job_id,
})
When I use Open API 3.0.2, as such:
app.config['SWAGGER'] = {
'title': 'MyApp',
'openapi': '3.0.2'
}
The Swagger-UI does not display the schema within the return type:
If I do not specify OpenAPI 3.0.2, it works fine:
Was that method of referencing a schema deprecated in OpenAPI 3.0.2?
thank you
本文标签: pythonFlasgger schema definition doesn39t show in swaggerui when using openapi 302Stack Overflow
版权声明:本文标题:python - Flasgger schema definition doesn't show in swagger-ui when using openapi 3.0.2 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744119202a2591656.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论