Code Monkey home page Code Monkey logo

Comments (7)

osteel avatar osteel commented on May 18, 2024

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.

gohelkiran avatar gohelkiran commented on May 18, 2024

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.

osteel avatar osteel commented on May 18, 2024

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.

gohelkiran avatar gohelkiran commented on May 18, 2024

@osteel I can post it there but is there any way to pass security headers when validating request to validator?

from openapi-httpfoundation-testing.

osteel avatar osteel commented on May 18, 2024

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.

gohelkiran avatar gohelkiran commented on May 18, 2024

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.

osteel avatar osteel commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.