Skip to content
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

Error generating docs from Discord Open API spec #181

Open
JustinBeckwith opened this issue Sep 6, 2024 · 2 comments
Open

Error generating docs from Discord Open API spec #181

JustinBeckwith opened this issue Sep 6, 2024 · 2 comments

Comments

@JustinBeckwith
Copy link

Oh, hey guys. This looks really promising! But it isn't working for me :)

Trying to give this a go at:
https://zudoku.dev/demo?api-url=https://raw.githubusercontent.com/discord/discord-api-spec/main/specs/openapi.json

Gives Unexpected error.

I thought it may be because I was pointing to the raw content, so I tried this:
https://zudoku.dev/demo?api-url=https://github.com/discord/discord-api-spec/blob/main/specs/openapi.json

Gives Failed to fetch schema

Copy link

linear bot commented Sep 6, 2024

@mosch
Copy link
Contributor

mosch commented Sep 6, 2024

Hey @JustinBeckwith – thanks for bringing this up.

We tracked down the problem to be with how deeply nested the schema is. Before we render the schema we dereference it which fails for this schema.

We're testing out a fix to implement LazyDereferencing – that only dereferences the schema where needed. This might be a good performance improvment anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants