question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Redoc not working with YAML

See original GitHub issue

If 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andreaTPcommented, Jul 27, 2022

Thanks for confirming @dweber019 !

0reactions
dweber019commented, Jul 26, 2022

Verified with version 2.0.5 and works. Uploaded some OpenApi version 3 spec in yaml and works.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found