From d7223c76a36bb289c361c168384c53764210a452 Mon Sep 17 00:00:00 2001 From: madaster97 <68160869+madaster97@users.noreply.github.com> Date: Sun, 27 Dec 2020 19:19:20 -0600 Subject: [PATCH] Pascal-Case definition conversion I recommend changing all defns to Pascal-Case. See issue I discovered trying to auto-generate a server from this spec: https://github.com/apigee-127/swagger-tools/issues/625 --- cds-hooks.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cds-hooks.yaml b/cds-hooks.yaml index b20868a..4ddf21b 100644 --- a/cds-hooks.yaml +++ b/cds-hooks.yaml @@ -25,7 +25,7 @@ paths: 200: description: Success (includes CDS service metadata) schema: - $ref: '#/definitions/CDS%20Service%20Information' + $ref: '#/definitions/CdsServiceInformation' /cds-services/{id}: post: @@ -41,26 +41,26 @@ paths: description: Body of CDS service request required: true schema: - $ref: '#/definitions/CDS%20Request' + $ref: '#/definitions/CdsRequest' responses: 200: description: Success (includes CDS Cards) schema: - $ref: '#/definitions/CDS%20Response' + $ref: '#/definitions/CdsResponse' ################################################################################ # Definitions # ################################################################################ definitions: - CDS Service Information: + CdsServiceInformation: type: object properties: services: type: array items: - $ref: '#/definitions/CDS%20Service' + $ref: '#/definitions/CdsService' - CDS Service: + CdsService: type: object required: - id @@ -82,7 +82,7 @@ definitions: prefetch: $ref: '#/definitions/Prefetch' - CDS Request: + CdsRequest: type: object required: - hook @@ -99,13 +99,13 @@ definitions: type: string format: url fhirAuthorization: - $ref: '#/definitions/FHIR%20Authorization' + $ref: '#/definitions/FhirAuthorization' context: type: object prefetch: type: object - FHIR Authorization: + FhirAuthorization: type: object required: - access_token @@ -127,7 +127,7 @@ definitions: subject: type: string - CDS Response: + CdsResponse: type: object required: - cards