Skip to content

Commit 5c09546

Browse files
authored
Merge pull request #10073 from joostverhoog/Revised-OpenAPI-v3-reserved-keywords-limitation
Revised OpenAPI v3 reserved header param names documentation
2 parents ac08f18 + 945423d commit 5c09546

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

content/en/docs/refguide/modeling/integration/rest-services/published-rest-services/published-rest-service/published-rest-operation-parameter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ Specify where the parameter comes from. Possible values are the following:
2222
* **Path** – The operation path can contain parameters as well. If you add a path parameter, make sure you also add it to the operation. For more information, see [Published REST Path Parameters](/refguide/published-rest-path-parameters/).
2323
* **Body** – The microflow can have 0 or 1 body parameters. A body parameter is taken from the body of the request. If the body is a file document or an image, the contents will be filled with the body of the request. If the body parameter is another type of object or a list, an [import mapping](/refguide/import-mappings/) is needed to convert the body content of the request into an object or a list. `GET`, `HEAD`, and `OPTIONS` operations should not have body parameters.
2424
* **Header** – The value of a header parameter is taken from the (first) request header with that name.
25+
26+
{{% alert color="info" %}}
27+
Certain reserved keywords in **OpenAPI 3.0** cannot be used as header parameter names. For example, using `Authorization` as a custom header key can cause conflicts since it is already reserved by the specification. Using those reserved keywords only impacts OpenAPI v3 in the Swagger UI and not the actual API endpoints. For more details and alternative names, see [OpenAPI 3.0: Reserved header parameter names](https://swagger.io/docs/specification/v3_0/describing-parameters/#header-parameters).
28+
{{% /alert %}}
29+
2530
* **Form** – The value of a form parameter is taken from the body part with that name (these are available for `multipart/form-data` requests).
2631

2732
### Name

content/en/docs/refguide/modeling/integration/rest-services/published-rest-services/published-rest-technical-details/open-api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,3 @@ Each operation generates an `Operation` object:
5151
| `responses` | The OK response. If security is enabled, this is also the unauthorized response. |
5252
| `deprecated` | Set to true when the operation is marked as deprecated. |
5353

54-
## Limitations
55-
56-
- Certain [reserved keywords](https://swagger.io/docs/specification/v3_0/describing-parameters/#header-parameters) in OpenAPI 3.0 cannot be used as header parameter names. For example, using `Authorization` as a custom header key can cause conflicts since it is already reserved by the specification.

content/en/docs/refguide10/modeling/integration/rest-services/published-rest-services/published-rest-service/published-rest-operation-parameter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ Specify where the parameter comes from. Possible values are the following:
2222
* **Path** – The operation path can contain parameters as well. If you add a path parameter, make sure you also add it to the operation. For more information, see [Published REST Path Parameters](/refguide10/published-rest-path-parameters/).
2323
* **Body** – The microflow can have 0 or 1 body parameters. A body parameter is taken from the body of the request. If the body is a file document or an image, the contents will be filled with the body of the request. If the body parameter is another type of object or a list, an [import mapping](/refguide10/import-mappings/) is needed to convert the body content of the request into an object or a list. `GET`, `HEAD`, and `OPTIONS` operations should not have body parameters.
2424
* **Header** – The value of a header parameter is taken from the (first) request header with that name.
25+
26+
{{% alert color="info" %}}
27+
Certain reserved keywords in **OpenAPI 3.0** cannot be used as header parameter names. For example, using `Authorization` as a custom header key can cause conflicts since it is already reserved by the specification. Using those reserved keywords only impacts OpenAPI v3 in the Swagger UI and not the actual API endpoints. For more details and alternative names, see [OpenAPI 3.0: Reserved header parameter names](https://swagger.io/docs/specification/v3_0/describing-parameters/#header-parameters).
28+
{{% /alert %}}
29+
2530
* **Form** – The value of a form parameter is taken from the body part with that name (these are available for `multipart/form-data` requests).
2631

2732
### Name

content/en/docs/refguide10/modeling/integration/rest-services/published-rest-services/published-rest-technical-details/open-api.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,3 @@ Each operation generates an `Operation` object:
5555
| `responses` | The OK response. If security is enabled, this is also the unauthorized response. |
5656
| `deprecated` | Set to true when the operation is marked as deprecated. |
5757

58-
## Limitations
59-
60-
- Certain [reserved keywords](https://swagger.io/docs/specification/v3_0/describing-parameters/#header-parameters) in OpenAPI 3.0 cannot be used as header parameter names. For example, using `Authorization` as a custom header key can cause conflicts since it is already reserved by the specification.

0 commit comments

Comments
 (0)