Skip to content

Commit

Permalink
fix: some erros with types and anyOf
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandra Pawlik committed Mar 25, 2019
1 parent 324a63d commit dbebc50
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
5 changes: 3 additions & 2 deletions schema/Brand.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ allOf:
- $ref: Thing.schema.yaml
- properties:
logo:
'@id': schema:logo
type: array
items:
type:
- $ref: url.schema.yaml
anyOf:
- $ref: URL.schema.yaml
- $ref: ImageObject.schema.yaml
review:
'@id': schema:review
Expand Down
1 change: 1 addition & 0 deletions schema/ContactPoint.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ allOf:
type: string
format: email
telephone:
'@id': schema:telephone
type: string
productsSupported:
'@id': schema:productsSupported
Expand Down
18 changes: 11 additions & 7 deletions schema/Organization.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,18 @@ allOf:
type: string
brand:
'@id': schema:brand
type:
type: object
items:
$ref: Brand.schema.yaml
contactPoint:
'@id': schema:contactPoint
type:
type: object
items:
$ref: ContactPoint.schema.yaml
department:
'@id': schema:department
type:
type: object
items:
$ref: Organization.schema.yaml
email:
type: string
Expand All @@ -28,17 +31,18 @@ allOf:
'@id': schema:funder
type: array
items:
- $ref: Organization.schema.yaml
- $ref: Person.schema.yaml
anyOf:
- $ref: Organization.schema.yaml
- $ref: Person.schema.yaml
legalName:
'@id': schema:legalName
type: string
logo:
'@id': schema:logo
type: array
items:
type:
- $ref: url.schema.yaml
anyOf:
- $ref: URL.schema.yaml
- $ref: ImageObject.schema.yaml
owns:
'@id': schema:owns
Expand Down
5 changes: 3 additions & 2 deletions schema/Person.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ allOf:
'@id': schema:funder
type: array
items:
- $ref: Organization.schema.yaml
- $ref: Person.schema.yaml
anyOf:
- $ref: Organization.schema.yaml
- $ref: Person.schema.yaml
honorificPrefix:
'@id': schema:honorificPrefix
type: string
Expand Down

0 comments on commit dbebc50

Please sign in to comment.