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

YAML support for SpecURL broke with v2.0.0-rc.51 #1574

Closed
tfranzel opened this issue Apr 9, 2021 · 2 comments
Closed

YAML support for SpecURL broke with v2.0.0-rc.51 #1574

tfranzel opened this issue Apr 9, 2021 · 2 comments

Comments

@tfranzel
Copy link

tfranzel commented Apr 9, 2021

Hi!

rc51 introduced a regression where YAML spec are not accepted anymore. rc50 works fine with a YAML URL. URL with a JSON target always works.

<redoc spec-url="{{ schema_url }}"></redoc>

Error message: Document must be JSON object, got string

screenshots at: tfranzel/drf-spectacular#363

looks like this issue originated somewhere around here: https://github.com/Redocly/redoc/compare/8bee3d5..60bf22e#diff-da06c79d8076556aba9bc86abc13358ead85f9aadc2d54c8e4de75c1f7bde9a7R24

@RomanHotsiy
Copy link
Member

Duplicate of #1573

We're working on it!

@tfranzel
Copy link
Author

tfranzel commented Apr 9, 2021

awesome, thanks! sry for the duplicate but i didn't see the other temporarily closed issue.

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

No branches or pull requests

2 participants