Software /
code /
prosody-modules
Changeset
4548:c50fac0f3cbf
mod_rest: Fix type of response status codes in openapi spec
https://spec.openapis.org/oas/v3.0.1#responsesObject
> This field MUST be enclosed in quotation marks for compatibility
> between JSON and YAML.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 25 Apr 2021 16:45:06 +0200 |
parents | 4547:a9e997d5eb94 |
children | 4549:cce0e1ec8a74 |
files | mod_rest/res/openapi.yaml |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_rest/res/openapi.yaml Sun Apr 25 16:38:20 2021 +0200 +++ b/mod_rest/res/openapi.yaml Sun Apr 25 16:45:06 2021 +0200 @@ -24,9 +24,9 @@ requestBody: $ref: '#/components/requestBodies/common' responses: - 200: + '200': $ref: '#/components/responses/success' - 202: + '202': $ref: '#/components/responses/sent' /rest/{kind}/{type}/{to}: @@ -44,7 +44,7 @@ requestBody: $ref: '#/components/requestBodies/common' responses: - 200: + '200': $ref: '#/components/responses/success' /rest/echo: @@ -58,7 +58,7 @@ requestBody: $ref: '#/components/requestBodies/common' responses: - 200: + '200': $ref: '#/components/responses/success' /rest/ping/{to}: @@ -72,7 +72,7 @@ parameters: - $ref: '#/components/parameters/to' responses: - 200: + '200': description: Test reachability of some address content: application/json: @@ -94,7 +94,7 @@ parameters: - $ref: '#/components/parameters/to' responses: - 200: + '200': description: Version query response content: application/json: @@ -115,7 +115,7 @@ parameters: - $ref: '#/components/parameters/to' responses: - 200: + '200': $ref: '#/components/responses/success' /rest/items/{to}: @@ -129,7 +129,7 @@ parameters: - $ref: '#/components/parameters/to' responses: - 200: + '200': $ref: '#/components/responses/success' components: