Skip to content

Commit

Permalink
Pascal-Case definition conversion
Browse files Browse the repository at this point in the history
I recommend changing all defns to Pascal-Case. 

See issue I discovered trying to auto-generate a server from this spec: apigee-127/swagger-tools#625
  • Loading branch information
madaster97 authored Dec 28, 2020
1 parent 6897f46 commit d7223c7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cds-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -82,7 +82,7 @@ definitions:
prefetch:
$ref: '#/definitions/Prefetch'

CDS Request:
CdsRequest:
type: object
required:
- hook
Expand All @@ -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
Expand All @@ -127,7 +127,7 @@ definitions:
subject:
type: string

CDS Response:
CdsResponse:
type: object
required:
- cards
Expand Down

0 comments on commit d7223c7

Please sign in to comment.