Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add security requirements type to root document #728

Conversation

xsalazar
Copy link
Contributor

Description

This PR adds the following type definitions:

This PR also exposes the proper typing for the security property for the root Swagger document. This is already enforced through Joi here which is validating the schema for this root object.

security Property

Root-level description is taken from https://swagger.io/specification/v2/
image

securityRequirement Property

Inner-property description is taken from https://swagger.io/specification/v2/#security-requirement-object
image

@robmcguinness robmcguinness merged commit 2d033b3 into hapi-swagger:master Jul 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants