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.

Move openapi validator to speccy

See original GitHub issue

Is your feature request related to a problem? Please describe.

The ibm validator is nice, but way to strict… no un-usuable in practice (for example type: uuid is an error), let’s move to speccy from our old friends -> wework!

https://github.com/wework/speccy

Describe the solution you’d like We need to way to enable/disable the validation and specify some custom rules from restful-react generate options.

Describe alternatives you’ve considered https://github.com/IBM/openapi-validator already in place, but sadly always disabled because it’s too strict…

Additional context The main idea to have a validator/linter part of our tool is to provide a better message when specs are not valid. Restful-react assume that the spec is perfectly valid for now, so it can break with a non helping message… (at least it can be better)

Also, our backend team already use speccy as validator in CI 😉

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
marckassaycommented, Aug 17, 2021

@fabien0102 Oh, thanks! I appreciate your work here on this project.

1reaction
fabien0102commented, Aug 16, 2021

Any thoughts on upgrading openapi-validator from 0.16.0 to 0.46.4?

Done, should be on 15.9.0 release 😀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Govern your APIs with Speccy - APIs You Won't Hate
I want to introduce a more file-level set of validation rules too, maybe under speccy doctor openapi.yaml to keep it away from the...
Read more >
anyOf in schemas are not resolved · Issue #119 · wework/speccy
Detailed description When given a Schema Object where the type field is within an anyOf, the linter reports an error.
Read more >
8+ OpenAPI Linters - Nordic APIs
Speccy ensures a specification is valid against OpenAPI v3, and also lints it against certain established rules. Speccy is initiated with usable ...
Read more >
speccy - npm
The goal here is to sniff your files for potentially bad things. "Bad" is objective, but you'll see validation errors, along with special...
Read more >
How to Generate an OpenAPI Spec From Code - BlazeMeter
An OpenAPI specification is a REST API description definition file. ... for example for input validation, that serves both implementation ...
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