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.

Stop using openapi-* dependencies

See original GitHub issue

Why?

openapi-request-coercer - Ajv can do it openapi-default-setter - Ajv can do it openapi-request-validator - it’s wrapper over Ajv that can’t correctly resolve $ref. But Ajv no have troubles with resolving $ref

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:23 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
sheldhurcommented, Jul 20, 2019

@cdimascio @richdouglasevans there is one more minor feature associated with a stricter fit to the described scheme which may affect on safety on projects in production. If I understand correctly, openapi-request-validator was filtering request fields what not described in scheme. Now you need to clearly indicate in schema what you want filtering fields that not described in schema. For this you need to add in the description of each schema the field additionalProperties: false

@richdouglasevans I advise you to add this to the tests.

https://github.com/epoberezkin/ajv#filtering-data

2reactions
cdimasciocommented, Jul 20, 2019

@sheldhur @richdouglasevans v1.3.0-rc.3 is now available. it replaces the old request validator with the new. feel free to try it out and file issues if you run into them

Read more comments on GitHub >

github_iconTop Results From Across the Web

End to End Restful API development using OpenAPI ... - Medium
In this article, we will be looking at how we can work with OpenAPI specification, generate code and use it in the server...
Read more >
Make it possible to disable generation of swagger annotations
We are using openapi-generator-maven-plugin to generate Java classes from swagger files. We are not using swagger but Spring rest template + ...
Read more >
How to disable swagger 3 configuration in spring boot
I have created swagger 2 using docket object & for swagger 3 just added maven dependency springdoc-openapi-ui . Able to check swagger 2...
Read more >
Conditional OpenAPI - FastAPI
Configure any required permissions and roles using dependencies. ... Then you could disable OpenAPI (including the UI docs) by setting the environment ...
Read more >
Documenting a Spring REST API Using OpenAPI 3.0 - Baeldung
Using Lightrun, you can drill down into running applications, including 3rd party dependencies, with real-time logs, snapshots, and metrics.
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