Skip to content

Commit

Permalink
Merge branch 'main' into osv
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelmathot committed Oct 7, 2024
2 parents 5a29daa + 3e4cd2e commit 17edf01
Showing 1 changed file with 82 additions and 98 deletions.
180 changes: 82 additions & 98 deletions json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,127 +3,111 @@
"$id": "https://stac-extensions.github.io/sat/v1.0.0/schema.json",
"title": "Satellite Extension",
"description": "STAC Sat Extension to a STAC Item.",
"type": "object",
"required": [
"stac_extensions"
],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://stac-extensions.github.io/sat/v1.0.0/schema.json"
}
}
},
"oneOf": [
{
"$comment": "This is the schema for STAC Items.",
"allOf": [
{
"type": "object",
"required": [
"type",
"properties",
"assets"
],
"properties": {
"type": {
"const": "Feature"
},
"properties": {
"allOf": [
"type": "object",
"required": [
"type",
"properties",
"assets"
],
"properties": {
"type": {
"const": "Feature"
},
"properties": {
"allOf": [
{
"anyOf": [
{
"required": [
"sat:platform_international_designator"
]
},
{
"required": [
"sat:orbit_state"
]
},
{
"required": [
"sat:absolute_orbit"
]
},
{
"required": [
"sat:relative_orbit"
]
},
{
"required": [
"sat:anx_datetime"
]
},
{
"anyOf": [
{
"required": [
"sat:platform_international_designator"
]
},
{
"required": [
"sat:orbit_state"
]
},
{
"required": [
"sat:absolute_orbit"
]
},
{
"required": [
"sat:relative_orbit"
]
},
{
"required": [
"sat:anx_datetime"
]
},
{
"required": [
"sat:orbit_cycle"
]
},
{
"required": [
"sat:orbit_state_vectors"
]
}
"required": [
"sat:orbit_cycle"
]
},
{
"$ref": "#/definitions/fields"
"required": [
"sat:orbit_state_vectors"
]
}
]
},
"assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
{
"$ref": "#/definitions/fields"
}
}
]
},
{
"$ref": "#/definitions/stac_extensions"
"assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
}
]
}
},
{
"$comment": "This is the schema for STAC Collections.",
"allOf": [
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "Collection"
},
"assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
},
"item_assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
}
}
},
{
"$ref": "#/definitions/stac_extensions"
}
]
}
],
"definitions": {
"stac_extensions": {
"type": "object",
"required": [
"stac_extensions"
"type"
],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://stac-extensions.github.io/sat/v1.0.0/schema.json"
"type": {
"const": "Collection"
},
"assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
},
"item_assets": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/fields"
}
}
}
},
}
],
"definitions": {
"fields": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 17edf01

Please sign in to comment.