IBM / openapi-validator

Configurable and extensible validator/linter for OpenAPI documents
Apache License 2.0
488 stars 88 forks source link

Support for authenticated additional Openapi definitions #545

Open dsteeley opened 1 year ago

dsteeley commented 1 year ago

Does openapi-validator support an api definition file where additional definitions specified by a $ref: require authentication.

Openapi-generator handles this with the --auth, is it possible to provide authentication headers when linting?

dpopp07 commented 1 year ago

@dsteeley We don't explicitly support that, no. I would check to see if Spectral supports it though - this tool has essentially become a wrapper around their functionality so we should support it if they do.