diff --git a/api/openapi.json b/api/openapi.json index 99b48390..25811afb 100644 --- a/api/openapi.json +++ b/api/openapi.json @@ -10018,7 +10018,7 @@ } }, "tags": [ - "Openapi" + "Utilities" ] } }, @@ -10029,7 +10029,7 @@ "responses": { "200": { "content": { - "application/x-yaml": { + "application/yaml": { "schema": { "format": "binary", "type": "string" @@ -10042,7 +10042,7 @@ } }, "tags": [ - "Openapi" + "Utilities" ] } }, diff --git a/api/openapi.yml b/api/openapi.yml index 206dc927..4f0073a8 100644 --- a/api/openapi.yml +++ b/api/openapi.yml @@ -91,7 +91,7 @@ paths: description: Get the openapi.json file operationId: getOpenapiJson tags: - - Openapi + - Utilities responses: '200': content: @@ -104,11 +104,11 @@ paths: description: Get the openapi.yml file operationId: getOpenapiYml tags: - - Openapi + - Utilities responses: '200': content: - application/x-yaml: + application/yaml: schema: type: string format: binary @@ -7480,17 +7480,17 @@ components: format: int64 example: 1668436763 ExtraCurrency: - type: object - required: - - amount - - preview - properties: - amount: - type: string - x-js-format: bigint - example: "1000000000" - preview: - $ref: '#/components/schemas/EcPreview' + type: object + required: + - amount + - preview + properties: + amount: + type: string + x-js-format: bigint + example: "1000000000" + preview: + $ref: '#/components/schemas/EcPreview' SourceFile: type: object required: diff --git a/pkg/oas/oas_response_encoders_gen.go b/pkg/oas/oas_response_encoders_gen.go index faa1e2ab..9efbcf4c 100644 --- a/pkg/oas/oas_response_encoders_gen.go +++ b/pkg/oas/oas_response_encoders_gen.go @@ -1004,7 +1004,7 @@ func encodeGetOpenapiJsonResponse(response jx.Raw, w http.ResponseWriter, span t } func encodeGetOpenapiYmlResponse(response GetOpenapiYmlOK, w http.ResponseWriter, span trace.Span) error { - w.Header().Set("Content-Type", "application/x-yaml") + w.Header().Set("Content-Type", "application/yaml") w.WriteHeader(200) span.SetStatus(codes.Ok, http.StatusText(200))