Skip to content

Commit

Permalink
deploy: 80301d7
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Feb 19, 2025
1 parent 52d00b8 commit 8b1c6ea
Showing 1 changed file with 154 additions and 0 deletions.
154 changes: 154 additions & 0 deletions v1.0.0/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://stac-extensions.github.io/osc/v1.0.0/schema.json#",
"title": "Open Science Catalog Extension",
"description": "STAC Open Science Catalog Extension for STAC Items and STAC Collections.",
"type": "object",
"required": [
"stac_extensions"
],
"properties": {
"stac_extensions": {
"type": "array",
"contains": {
"const": "https://stac-extensions.github.io/osc/v1.0.0/schema.json"
}
}
},
"oneOf": [
{
"$comment": "This is the schema for STAC Items.",
"type": "object",
"required": [
"type",
"properties"
],
"properties": {
"type": {
"const": "Feature"
},
"properties": {
"$ref": "#/definitions/fields"
}
}
},
{
"$comment": "This is the schema for STAC Catalogs & Collections.",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"enum": [
"Catalog",
"Collection"
]
}
},
"allOf": [
{
"$ref": "#/definitions/fields"
}
]
}
],
"definitions": {
"fields": {
"oneOf": [
{
"$ref": "#/definitions/product_fields"
},
{
"$ref": "#/definitions/project_fields"
}
]
},
"project_fields": {
"type": "object",
"required": [
"osc:type",
"osc:status"
],
"properties": {
"osc:type": {
"type": "string",
"const": "project"
},
"osc:status": {
"$ref": "#/definitions/status"
},
"osc:region": {
"$ref": "#/definitions/region"
}
},
"patternProperties": {
"^(?!osc:)": {}
},
"additionalProperties": false
},
"product_fields": {
"type": "object",
"required": [
"osc:type",
"osc:status",
"osc:project"
],
"properties": {
"osc:type": {
"type": "string",
"const": "product"
},
"osc:status": {
"$ref": "#/definitions/status"
},
"osc:project": {
"$ref": "#/definitions/project"
},
"osc:region": {
"$ref": "#/definitions/region"
},
"osc:variables": {
"$ref": "#/definitions/variables"
},
"osc:missions": {
"$ref": "#/definitions/missions"
}
},
"patternProperties": {
"^(?!osc:)": {}
},
"additionalProperties": false
},
"status": {
"type": "string",
"enum": [
"planned",
"ongoing",
"completed"
]
},
"project": {
"type": "string",
"minLength": 1
},
"region": {
"type": "string",
"minLength": 1
},
"variables": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"missions": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
}
}

0 comments on commit 8b1c6ea

Please sign in to comment.