You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 2 aiohttp sub-apps. Both of them handle same route with @json_schema(SomeSchema) applied. I'd like to have separate Swagger UI + API spec for each of the sub-apps
So I call setup_aiohttp_apispec() for the first sub-app and then for the second one. When I run my app, the first created sub-app contains Some schema in spec definitions. But the second one doesn't. So I get
Could not resolve reference: Could not resolve pointer: /definitions/Some does not exist in document
error in Swagger UI for the endpoint in the second sub-app
It's the only schema missing in the spec. Also I use @docs (responses), @match_info_schema, @querystring_schema. All of them work fine in this scenario
Validation still works fine for missing schema though
The text was updated successfully, but these errors were encountered:
Hi,
I have 2 aiohttp sub-apps. Both of them handle same route with
@json_schema(SomeSchema)
applied. I'd like to have separate Swagger UI + API spec for each of the sub-appsSo I call
setup_aiohttp_apispec()
for the first sub-app and then for the second one. When I run my app, the first created sub-app containsSome
schema in spec definitions. But the second one doesn't. So I geterror in Swagger UI for the endpoint in the second sub-app
It's the only schema missing in the spec. Also I use
@docs
(responses),@match_info_schema
,@querystring_schema
. All of them work fine in this scenarioValidation still works fine for missing schema though
The text was updated successfully, but these errors were encountered: