diff --git a/versions/3.0.3.md b/versions/3.0.3.md index e21aa46554..6b356227f6 100644 --- a/versions/3.0.3.md +++ b/versions/3.0.3.md @@ -3188,7 +3188,7 @@ Field Name | Type | Applies To | Description description | `string` | Any | A short description for security scheme. [CommonMark syntax](https://spec.commonmark.org/) MAY be used for rich text representation. name | `string` | `apiKey` | **REQUIRED**. The name of the header, query or cookie parameter to be used. in | `string` | `apiKey` | **REQUIRED**. The location of the API key. Valid values are `"query"`, `"header"` or `"cookie"`. -scheme | `string` | `http` | **REQUIRED**. The name of the HTTP Authorization scheme to be used in the [Authorization header as defined in RFC7235](https://tools.ietf.org/html/rfc7235#section-5.1). The values used SHOULD be registered in the [IANA Authentication Scheme registry](https://www.iana.org/assignments/http-authschemes/http-authschemes.xhtml). +scheme | `string` | `http`, `oauth2` | **REQUIRED**. The name of the HTTP Authorization scheme to be used in the [Authorization header as defined in RFC7235](https://tools.ietf.org/html/rfc7235#section-5.1). The values used SHOULD be registered in the [IANA Authentication Scheme registry](https://www.iana.org/assignments/http-authschemes/http-authschemes.xhtml). bearerFormat | `string` | `http` (`"bearer"`) | A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes. flows | [OAuth Flows Object](#oauthFlowsObject) | `oauth2` | **REQUIRED**. An object containing configuration information for the flow types supported. openIdConnectUrl | `string` | `openIdConnect` | **REQUIRED**. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL. @@ -3248,6 +3248,7 @@ bearerFormat: JWT ```json { "type": "oauth2", + "scheme": "bearer", "flows": { "implicit": { "authorizationUrl": "https://example.com/api/oauth/dialog", @@ -3262,7 +3263,8 @@ bearerFormat: JWT ```yaml type: oauth2 -flows: +scheme: bearer +flows: implicit: authorizationUrl: https://example.com/api/oauth/dialog scopes: @@ -3303,6 +3305,7 @@ This object MAY be extended with [Specification Extensions](#specificationExtens ```JSON { "type": "oauth2", + "scheme": "bearer", "flows": { "implicit": { "authorizationUrl": "https://example.com/api/oauth/dialog", @@ -3325,7 +3328,8 @@ This object MAY be extended with [Specification Extensions](#specificationExtens ```yaml type: oauth2 -flows: +scheme: bearer +flows: implicit: authorizationUrl: https://example.com/api/oauth/dialog scopes: