Skip to content

Commit

Permalink
Merge pull request #9 from miniBill/expose-security
Browse files Browse the repository at this point in the history
Expose the security field
  • Loading branch information
wolfadex authored May 27, 2024
2 parents 843d6bb + fa34846 commit 348757e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 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,9 @@ 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 348757e

Please sign in to comment.