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
My API is returning a JSON schema, and I'm trying to tell my OpenAPI clients that this is the case by referring to the well-known schema URL https://json-schema.org/draft/2020-12/schema.
I just want my openapi.json to contain something like:
My API is returning a JSON schema, and I'm trying to tell my OpenAPI clients that this is the case by referring to the well-known schema URL
https://json-schema.org/draft/2020-12/schema
.I just want my
openapi.json
to contain something like:I've attempted to do that like this (full example here):
But this produces a panic:
This occurs because the
schema
variable returned here isn'tnil
-checked before it is accessed on the following line.Is this the correct way to accomplish this and this is a bug? Or am I doing something wrong?
The text was updated successfully, but these errors were encountered: