Redoc not working with YAML
See original GitHub issueIf I upload an OpenAPI artifact with YAML instead of JSON the react UI for OpenAPI (Redoc) fails with:
react-dom.production.min.js:209 SyntaxError: Unexpected token o in JSON at position 0
This is caused by this line https://github.com/Apicurio/apicurio-registry/blob/a74e1995df7d59bca505395bbadbdf7941d26564/ui/src/app/pages/artifactVersion/components/tabs/documentation.tsx#L74
Maybe we could use something like https://www.npmjs.com/package/js-yaml ?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Not able to embed markdown files in yaml #1807 - GitHub
I think the problem with your definition. Try to use only $ref or markdown text ... The issue you face is not related...
Read more >Troubleshooting - Redocly
Solution: use spaces, and two space increments are standard for levels of indentation for YAML (even though others space increments are valid).
Read more >OpenApi (Redoc) remote (network) nested references
We have a running Redoc server, which includes a bunch on yaml files with api specifications. However, a couple of neccesary yaml files...
Read more >Swagger UI tutorial | Documenting APIs - Idratherbewriting.com
Drag your OpenAPI specification file, openapi_openweathermap.yml ... When you're setting up Swagger UI, you might run into some issues.
Read more >ReDoc Interactive Demo
ReDoc Interactive Demo. ... API Support: apiteam@swagger.io URL: https://github.com/Redocly/redoc License: Apache 2.0 Terms of Service ... Pet not found.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for confirming @dweber019 !
Verified with version 2.0.5 and works. Uploaded some OpenApi version 3 spec in yaml and works.