Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions schema_1.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"schema_version": {
"description": "Required, schema version of the current document.",
"id": "/properties/header/properties/api_version",
"type": "string"
"type": "string",
"minLength": 1
},
"comments": {
"description": "Optional, additional information for the spectral dataset.",
Expand All @@ -20,7 +21,8 @@
"description": {
"description": "Required, description of the spectral dataset.",
"id": "/properties/header/properties/description",
"type": "string"
"type": "string",
"minLength": 1
},
"document_creation_date": {
"description": "Required, document creation date expressed as per RFC 3339 - Date and Time on the Internet: Timestamps, e.g. 2017-01-01T12:00:00Z.",
Expand All @@ -31,7 +33,8 @@
"document_creator": {
"description": "Required, creator of the document, e.g. company, individual, laboratory, etc.",
"id": "/properties/header/properties/document_creator",
"type": "string"
"type": "string",
"minLength": 1
},
"laboratory": {
"description": "Optional, laboratory or company that performed the measurements.",
Expand All @@ -41,7 +44,8 @@
"license": {
"description": "Required, usage license of the document, e.g. CC-BY-NC-ND",
"id": "/properties/header/properties/license",
"type": "string"
"type": "string",
"minLength": 1
},
"manufacturer": {
"description": "Optional, manufacturer of the device being tested.",
Expand Down Expand Up @@ -70,6 +74,7 @@
}
},
"required": [
"schema_version",
"description",
"document_creation_date",
"document_creator",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ error=0
for DIR in camera cmf illuminant training; do
for FILE in ./data/$DIR/*; do
echo "Processing file $FILE"
if ! check-jsonschema --schemafile ./schema_0.1.0.json $FILE; then
if ! check-jsonschema --schemafile ./schema_1.0.0.json $FILE; then
error=1
fi
done
Expand Down