-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema added using fastify.addSchema is resulted as "def-#" in Swagger Models section #286
Comments
Would you mind to send a PR to address this issue? |
I tried to fix the issue, however, my solution breaks the test code 😂. Thanks! |
@velopert Are you making progress? I would be interested in this and I'd be willing to give a hand. |
Upon further looking, I saw that this is caused by https://github.com/Eomm/json-schema-resolver (the example in the readme demonstrates this) I think this issue should be closed and another one opened there. |
I have already created PR there Eomm/json-schema-resolver#4 |
As reviewed in the PR the issuer is more complex, I will support @IOsonoTAN to get a good solution. I agree that we should cover this use case that should be 99% of the cases (not a fact, just an opinion) |
any news with this issue? when @IOsonoTAN PR's will be merged? |
As a temporary solution I managed to get everything to work as intended by forking For anyone who is not willing to wait for @IOsonoTAN PR to get merged by
|
Any news with this issue? |
cc @Eomm |
I know it but I didn't get the chance to work on it: it is on my todo list but I have other things to push forward before this one 😞 |
Closing as superseded by #337 |
🐛 Bug Report
When I add schema by
fastify.addSchema
, the Model name is shown asdef-#
where#
is index.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The model names should be shown properly like following screenshot:
Your Environment
The text was updated successfully, but these errors were encountered: