File tree Expand file tree Collapse file tree 7 files changed +17
-45
lines changed Expand file tree Collapse file tree 7 files changed +17
-45
lines changed Original file line number Diff line number Diff line change @@ -2664,8 +2664,7 @@ components:
26642664 in : path
26652665 required : true
26662666 schema :
2667- type : string
2668- pattern : ' ^[a-f0-9]{24}$'
2667+ $ref : ./clinic/models/siteId.v1.yaml
26692668 userId :
26702669 name : userId
26712670 in : path
Original file line number Diff line number Diff line change @@ -3,20 +3,9 @@ title: Site
33description : " A clinic's physical or logical location."
44properties :
55 id :
6- title : Object Id
7- type : string
8- x-go-type-skip-optional-pointer : true
9- description : String representation of a resource id
10- minLength : 24
11- maxLength : 24
12- pattern : ' ^[a-f0-9]{24}$'
6+ $ref : ./siteId.v1.yaml
137 name :
14- type : string
15- x-go-type-skip-optional-pointer : true
16- description : The site description.
17- minLength : 1
18- maxLength : 200
19- pattern : ' ^[[:graph:]\p{L}\p{N}][[:graph:]\p{L}\p{N} ]*$'
8+ $ref : ./siteName.v1.yaml
209required :
2110 - id
2211 - name
Original file line number Diff line number Diff line change @@ -3,11 +3,6 @@ title: Site
33description : " A clinic's physical or logical location."
44properties :
55 name :
6- type : string
7- x-go-type-skip-optional-pointer : true
8- description : The site description.
9- minLength : 1
10- maxLength : 200
11- pattern : ' ^[[:graph:]\p{L}\p{N}][[:graph:]\p{L}\p{N} ]*$'
6+ $ref : ./siteName.v1.yaml
127required :
138 - name
Original file line number Diff line number Diff line change 1- title : Site ID
2- description : >-
3- Site identifier.
4- type : string
5- minLength : 24
6- maxLength : 24
7- pattern : ' ^[a-f0-9]{24}$'
8- readOnly : true
9- example : 2fe2488217ee43e1b2e83c2f
1+ # Site id is a mongodb objectid, but not a pointer (like objectid.v1.yaml).
2+ allOf :
3+ - $ref : ../../common/models/objectid.v1.yaml
4+ - x-go-type-skip-optional-pointer : true
5+ x-go-type : string # otherwise oapi-codegen will generate interface{}
6+ readOnly : true # can't merge with objectid without this matching
Original file line number Diff line number Diff line change @@ -3,11 +3,4 @@ title: Site ID List
33uniqueItems : true
44nullable : true
55items :
6- title : Site ID
7- description : >-
8- Site identifier.
9- type : string
10- minLength : 24
11- maxLength : 24
12- pattern : ' ^[a-f0-9]{24}$'
13- readOnly : true
6+ $ref : ./siteId.v1.yaml
Original file line number Diff line number Diff line change 1+ type : string
2+ x-go-type-skip-optional-pointer : true
3+ description : The site's name.
4+ minLength : 1
5+ maxLength : 200
6+ pattern : ' ^[[:graph:]\p{L}\p{N}][[:graph:]\p{L}\p{N} ]*$'
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments