Comments (7)
Hi,
I think that's down to how you build your request object? Can't you build it with the proper headers? I don't know in which context you're using the package (Laravel? Test suite?), so I don't know where you get that request object from, nor if you can update and how 🙂
from openapi-httpfoundation-testing.
Request object is constructed using slim. There is a proper header set in request but it gives error. I found that no security headers are set anywhere in OperationAddress.
from openapi-httpfoundation-testing.
Sorry mate, I don't really know. To be honest this looks like it has more to do with Slim and/or using OpenAPI definitions than it does with using this package per se. As you can see the original exception is thrown by the underlying package, so maybe you'd have more luck opening an issue there
from openapi-httpfoundation-testing.
@osteel I can post it there but is there any way to pass security headers when validating request to validator?
from openapi-httpfoundation-testing.
There is no feature to add these headers separately. Again, these headers should already be part of the request object, in my opinion
from openapi-httpfoundation-testing.
Yes, request object already has all the headers, but it's missing from OperationAddress object where we comparing the schemes which is set from the Validators but as you said there is no such feature
from openapi-httpfoundation-testing.
OperationAddress
is a class from the package I've mentioned above. Like I said, it's probably an issue better suited for them. Closing this for now, as I believe I answered your question and cannot help you any further
from openapi-httpfoundation-testing.
Related Issues (13)
- issue: Header values must be RFC 7230 compatible strings HOT 2
- laravel 6 HOT 4
- Api
- Symfony 6 support HOT 2
- Testing against OpenAPI Specification doesnt seem to work as intended. HOT 6
- OpenAPI v3.1 Support HOT 8
- more debug information HOT 4
- Is there any way to validate response objects recursively? HOT 5
- Return as exception all mandatory fields HOT 13
- Question: How to make the package raise an exception when field is missing in response? HOT 2
- Support for Symfony 5.4 is broken HOT 3
- Path parameter validation is broken HOT 8
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-httpfoundation-testing.