Randy Brown
07/28/2023, 4:59 PM@pactflow/swagger-mock-validator (versions attempted: 11.3 and 12.1 ) I get an error when it tries to identify my security scheme for some endpoints in my openapi.json; I get cannot read property type of undefined at isApiKeySecuritySchemeInHeaderOrQuery . This makes sense--some of my endpoints are public and don't have a security scheme definition associated with them.
My understanding may be incorrect, but I thought that public apis don't need to have an explicitly defined security scheme in openpai3. I'm unable to share the openapi def as it's work stuff.
Is this an issue in the code (I notice if I deep dive and just change scheme.type to scheme?.type on the apiKey and http securityScheme validators all is well with the world) or with my understanding of openapi?
If it's an issue with the code, I'm happy to submit a PR to update! Thanks!Yousaf Nabi (pactflow.io)
Randy Brown
07/28/2023, 5:12 PMMatt (pactflow.io / pact-js / pact-go)