# HG changeset patch # User Kim Alvefur # Date 1619361906 -7200 # Node ID c50fac0f3cbf9e7a1c005933e2bfb5f24a9fed78 # Parent a9e997d5eb944b23459735c573bee2d2ddb9134f 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. diff -r a9e997d5eb94 -r c50fac0f3cbf mod_rest/res/openapi.yaml --- 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: