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.

schema validation abort directly

See original GitHub issue

schema validation abort directly try: jsonschema.validate(data, main_def) except ValidationError as e: abort(Response(str(e), status=400)) should add option to only raise an exception and let the caller to handle it

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
allrod5commented, Aug 7, 2017

@pint12 Yes, I originally planned for a minor 0.7.0 release but it will no longer be necessary I think. So 0.6.7 patch will be.

There is, though, a design flaw in @swag_from that I want to fix before releasing 0.6.7:

from flasgger import Swagger
from flasgger import swag_from

swagger = Swagger(app, validation_error_handler=my_handler)  # sets default handler

@swag_from('spec.yml', validation=True)  # won't use the default handler
...

The same happens if you set a custom default validation_function to Swagger.

0reactions
ghostcommented, Aug 7, 2017

0.6.7 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Schema Validation on Confluent Server
Schema Validation enables the broker to verify that data produced to a Kafka topic is using a valid schema ID in Schema Registry...
Read more >
Unexpected schema validation error received using ... - IBM
When sending a request to a DataPower service that is defined with the XML or Non-XML request type, an unexpected schema validation error...
Read more >
JOI validation is not returning all the errors despite setting ...
validate : { payload: Schema.NamePayload, },. I want postman to show all the error message not only the first error message. And I...
Read more >
How to Fix Schema Validation Errors
The most common schema validation error is "either "offers", "review", or "aggregate rating" should be specified." Here's how to fix it.
Read more >
Understanding schema errors | HESA
Schema errors prevent the validation being run in full because the file cannot be read. This means that errors cannot be traced to...
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