diff --git a/api/api.yaml b/api/api.yaml index 6c7ded7..57092ef 100644 --- a/api/api.yaml +++ b/api/api.yaml @@ -191,8 +191,8 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Version' + $ref: '../version.yaml#/components/schemas/Version' x-field-uid: 1 default: - $ref: '#/components/responses/Failure' + $ref: '../models/result/request.yaml#/components/responses/Failure' x-field-uid: 2 diff --git a/version.yaml b/version.yaml new file mode 100644 index 0000000..59b68dd --- /dev/null +++ b/version.yaml @@ -0,0 +1,25 @@ +components: + schemas: + Version: + description: |- + Version details + type: object + properties: + api_spec_version: + description: |- + Version of API specification + type: string + default: '' + x-field-uid: 1 + sdk_version: + description: |- + Version of SDK generated from API specification + type: string + default: '' + x-field-uid: 2 + app_version: + description: |- + Version of application consuming or serving the API + type: string + default: '' + x-field-uid: 3 \ No newline at end of file