Skip to content

Commit

Permalink
Expose the security field
Browse files Browse the repository at this point in the history
  • Loading branch information
miniBill committed May 27, 2024
1 parent 5f56ce5 commit 66db7cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/OpenApi.elm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module OpenApi exposing
, servers
, tags
, version
, security
)

{-| Corresponds to the [OpenAPI Object](https://spec.openapis.org/oas/latest#openapi-object) in the OpenAPI specification.
Expand All @@ -36,6 +37,7 @@ module OpenApi exposing
@docs servers
@docs tags
@docs version
@docs security
-}

Expand Down Expand Up @@ -191,3 +193,8 @@ components (OpenApi openApi) =
paths : OpenApi -> Dict String Path
paths (OpenApi openApi) =
openApi.paths


security : OpenApi -> List SecurityRequirement
security (OpenApi openApi) =
openApi.security

0 comments on commit 66db7cf

Please sign in to comment.