-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make datetime nullable for stac items for which a nominal datatime ma…
…kes no sense #792
- Loading branch information
Showing
5 changed files
with
97 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "schema.json#", | ||
"title": "Date and Time Fields", | ||
"type": "object", | ||
"anyOf": [ | ||
{ | ||
"required": [ | ||
"datetime" | ||
], | ||
"properties": { | ||
"datetime": { | ||
"$ref": "#/definitions/datetime_string" | ||
}, | ||
"start_datetime": { | ||
"$ref": "#/definitions/start_datetime" | ||
}, | ||
"end_datetime": { | ||
"$ref": "#/definitions/end_datetime" | ||
} | ||
}, | ||
"dependencies": { | ||
"start_datetime": { | ||
"required": [ | ||
"end_datetime" | ||
] | ||
}, | ||
"end_datetime": { | ||
"required": [ | ||
"start_datetime" | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"required": [ | ||
"datetime", | ||
"start_datetime", | ||
"end_datetime" | ||
], | ||
"properties": { | ||
"datetime": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "#/definitions/datetime_string" | ||
}, | ||
{ | ||
"type": ["null"], | ||
"const": null | ||
} | ||
] | ||
}, | ||
"start_datetime": { | ||
"$ref": "#/definitions/start_datetime" | ||
}, | ||
"end_datetime": { | ||
"$ref": "#/definitions/end_datetime" | ||
} | ||
} | ||
} | ||
], | ||
"definitions": { | ||
"datetime_string": { | ||
"title": "Date and Time", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"start_datetime": { | ||
"title": "Start Date and Time", | ||
"type": "string", | ||
"format": "date-time" | ||
}, | ||
"end_datetime": { | ||
"title": "End Date and Time", | ||
"type": "string", | ||
"format": "date-time" | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters