Comments (4)
So i pinpointed the problem, my request uses basic auth, i was encoding user/pass with base64 which caused the above problem, still the error is really not as expected
from openapi-core.
Hi @itsMGA
thanks for the report. Please provide working example with full traceback.
from openapi-core.
I found you have to dig a little deeper into the exceptions to get the exact problem. OpenApiError has a __cause__
attribute that points to the InvalidSchemaValue
that's raised by the validator. InvalidSchemaValue has a schema_errors
attribute, which is a list of jsonschema ValidationError
s. They contain the exact error message via ValidationError.message
and if it's a nested field, the .path
to the bad field. Looks like path parameter names can be retrieved from OpenApiError.name
instead.
Hope that helps someone.
from openapi-core.
Related Issues (20)
- [Bug]: Unable to send files through multipart/form in Flask when integrated with Openapi-Core HOT 3
- [Bug]: Invalid import from openapi_core import openapi_request_validator + more HOT 1
- [Bug]: encoding not supported for individual requestBody properties HOT 1
- [Bug]: Spec.from_dict gets stuck when schema has requirements missing HOT 3
- [Bug]: Validate_request does not raise/return any errors when it should
- [Feature]: Iter over errors, not raise them HOT 3
- [Bug]: `FlaskOpenAPIView` no longer supports custom response validator HOT 3
- [Bug]: PathNotFound exception if templated path parameter contains "-" character HOT 1
- [Bug]: UnboundLocalError: local variable 'value' referenced before assignment HOT 4
- [Bug]: Can’t validate numerical string as `type`: `integer`/`number`/`boolean` wrapped in `allOf`/`anyOf`/`oneOf` HOT 3
- [Bug]: Can’t validate `integer`/`number`/`boolean` from `application/x-www-form-urlencoded` request body HOT 4
- [Bug]: Won’t validate empty request body even if it satisfies the schema HOT 1
- [Bug]: Don't cast data from media types deserializer
- Spec now validates three times
- [Bug] 0.18.1 + all up to f5f5792a: pytest warnings + call trace HOT 3
- [Feature]: Please backport `jsonschema-path` changes to stable/0.18.x branch HOT 4
- [Bug]: ImportError: cannot import name 'OpenAPI' from 'openapi_core' HOT 1
- [Bug]: WerkzeugOpenAPIRequest does not inherits from openapi_core.protocols.Request HOT 1
- [Feature]: Support for Azure Function HttpRequest object HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-core.