Skip to content

Commit

Permalink
Merge pull request #113 from redmitry/invalid-timeElement-fix
Browse files Browse the repository at this point in the history
invalid timeElement oneOf fix
  • Loading branch information
costero-e authored Oct 10, 2023
2 parents d2be0e2 + 1f6fb0b commit 7c64fdf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
7 changes: 5 additions & 2 deletions models/json/beacon-v2-default-model/common/age.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
"description": "Age value definition. Provenance: GA4GH Phenopackets v2 `Age`",
"properties": {
"iso8601duration": {
"description": "Represents age as a ISO8601 duration (e.g., P40Y10M05D).",
"description": "Represents age as a ISO8601 duration (e.g., 'P40Y10M05D').",
"example": "P32Y6M1D",
"type": "string"
}
},
"required": [
"iso8601duration"
],
"title": "Age",
"type": "object"
}
}
4 changes: 4 additions & 0 deletions models/json/beacon-v2-default-model/common/ageRange.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"description": "Represents age as an ISO8601 duration (e.g., P18Y)."
}
},
"required": [
"end",
"start"
],
"title": "AgeRange",
"type": "object"
}
2 changes: 2 additions & 0 deletions models/src/beacon-v2-default-model/common/age.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ properties:
description: Represents age as a ISO8601 duration (e.g., P40Y10M05D).
type: string
example: P32Y6M1D
required:
- iso8601duration
3 changes: 3 additions & 0 deletions models/src/beacon-v2-default-model/common/ageRange.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ properties:
end:
description: Represents age as an ISO8601 duration (e.g., P59Y).
$ref: ./age.yaml
required:
- start
- end

0 comments on commit 7c64fdf

Please sign in to comment.