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
What are you trying to achieve, or the steps to reproduce?
I'm defining schemas with the addSchema API, but they are displayed without a name in the swagger UI. There's an autogenerated name def-0.
I'm using the openapi option in the register configuration.
To see the $ids of the defined schemas as names in the UI. In this case, I expected to see a mySchema in the schemes list.
Is there something I am missing? In the docs and in the issues I couldn't find anyone reporting this, maybe there's something I'm doing wrong.
Context
node version: 14.8.0
fastify version: 3.11.0
os: Linux
The text was updated successfully, but these errors were encountered:
You did nothing wrong, this is the current expected behavior for fastify-swagger.
You may keep a track on the following two issue or PR for this functionality Eomm/json-schema-resolver#4 #337
You have already researched for similar issues?
Yes
What are you trying to achieve, or the steps to reproduce?
I'm defining schemas with the
addSchema
API, but they are displayed without a name in the swagger UI. There's an autogenerated namedef-0
.I'm using the
openapi
option in theregister
configuration.What was the result you received?
What did you expect?
To see the
$ids
of the defined schemas as names in the UI. In this case, I expected to see amySchema
in the schemes list.Is there something I am missing? In the docs and in the issues I couldn't find anyone reporting this, maybe there's something I'm doing wrong.
Context
The text was updated successfully, but these errors were encountered: