-
Notifications
You must be signed in to change notification settings - Fork 1
Schema 1.0.0 #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
antond-weta
merged 4 commits into
AcademySoftwareFoundation:main
from
antond-weta:schema_1.0.0
Sep 11, 2025
Merged
Schema 1.0.0 #12
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
fcd43a3
copy schema_0.1.0.json retaining history - pt1
antond-weta 95e6279
copy schema_0.1.0.json retaining history - pt2
antond-weta 9ff2bab
copy schema_0.1.0.json retaining history - pt3
antond-weta ed0f1b8
copy schema_0.1.0.json retaining history - pt4
antond-weta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,143 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-04/schema#", | ||
| "definitions": { | ||
| }, | ||
| "id": "#", | ||
| "properties": { | ||
| "header": { | ||
| "id": "/properties/header", | ||
| "properties": { | ||
| "schema_version": { | ||
| "description": "Required, schema version of the current document.", | ||
| "id": "/properties/header/properties/api_version", | ||
| "type": "string" | ||
| }, | ||
| "catalog_number": { | ||
| "description": "Optional, ", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. incomplete description? |
||
| "id": "/properties/header/properties/catalog_number", | ||
| "type": ["string", "null"] | ||
| }, | ||
| "comments": { | ||
| "description": "Optional, additional information for the spectral dataset.", | ||
| "id": "/properties/header/properties/comments", | ||
| "type": ["string", "null"] | ||
| }, | ||
| "description": { | ||
| "description": "Required, description of the spectral dataset.", | ||
| "id": "/properties/header/properties/description", | ||
| "type": "string" | ||
| }, | ||
| "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.", | ||
| "id": "/properties/header/properties/document_creation_date", | ||
| "type": "string", | ||
| "format": "date-time" | ||
| }, | ||
| "document_creator": { | ||
| "description": "Required, creator of the document, e.g. company, individual, laboratory, etc.", | ||
| "id": "/properties/header/properties/document_creator", | ||
| "type": "string" | ||
| }, | ||
| "laboratory": { | ||
| "description": "Optional, laboratory or company that performed the measurements.", | ||
| "id": "/properties/header/properties/laboratory", | ||
| "type": ["string", "null"] | ||
| }, | ||
| "license": { | ||
| "description": "Required, usage license of the document, e.g. CC-BY-NC-ND", | ||
| "id": "/properties/header/properties/license", | ||
| "type": "string" | ||
| }, | ||
| "manufacturer": { | ||
| "description": "Optional, manufacturer of the device being tested.", | ||
| "id": "/properties/header/properties/manufacturer", | ||
| "type": ["string", "null"] | ||
| }, | ||
| "measurement_equipment": { | ||
| "description": "Optional, measurement equipment used to test the device.", | ||
| "id": "/properties/header/properties/measurement_equipment", | ||
| "type": ["string", "null"] | ||
| }, | ||
| "model": { | ||
| "description": "Optional, model of the device being tested.", | ||
| "id": "/properties/header/properties/model", | ||
| "type": ["string", "null"] | ||
| }, | ||
| "unique_identifier": { | ||
| "description": "Optional, generated unique identifier for the document, e.g. SHA256.", | ||
| "id": "/properties/header/properties/unique_identifier", | ||
| "type": ["string", "null"] | ||
| } | ||
| }, | ||
| "required": [ | ||
| "description", | ||
| "document_creation_date", | ||
| "document_creator", | ||
| "license" | ||
| ], | ||
| "type": "object" | ||
| }, | ||
| "spectral_data": { | ||
| "id": "/properties/spectral_data", | ||
| "properties": { | ||
| "bandwidth_FWHM": { | ||
| "description": "Optional, spectro-radiometer full-width at half-maximum bandwidth in nm.", | ||
| "id": "/properties/spectral_data/properties/bandwidth_FWHM", | ||
| "type": ["number", "null"] | ||
| }, | ||
| "bandwidth_corrected": { | ||
| "description": "Optional, whether bandwidth correction has been applied to the spectral data.", | ||
| "id": "/properties/spectral_data/properties/bandwidth_corrected", | ||
| "type": ["boolean", "null"] | ||
| }, | ||
| "data": { | ||
| "description": "Required, defines the spectral dataset, requiring at least one *key* from `index` whose *value* is an *object* containing wavelength/value pairs.", | ||
| "id": "/properties/spectral_data/properties/data", | ||
| "patternProperties": { | ||
| "^.*$": { "type": "object" } | ||
| }, | ||
| "additionalProperties": false, | ||
| "type": "object" | ||
| }, | ||
| "index": { | ||
| "description": "Required, indexes the spectral dataset.", | ||
| "id": "/properties/spectral_data/properties/index", | ||
| "patternProperties": { | ||
| "^.*$": { "type": "array" } | ||
| }, | ||
| "additionalProperties": false, | ||
| "type": "object" | ||
| }, | ||
| "reflection_geometry": { | ||
| "description": "Required if `units` is *reflectance*, reflection geometry attributes as per CIE 15:2004.", | ||
| "id": "/properties/spectral_data/properties/reflection_geometry", | ||
| "type": ["string", "null"], | ||
| "enum": ["di:8", "de:8", "8:di", "8:de", "d:d", "d:0", "45a:0", "45c:0", "0:45a", "45x:0", "0:45x", "other", null] | ||
| }, | ||
| "transmission_geometry": { | ||
| "description": "Required if `units` is *transmittance*, transmission geometry attributes as per CIE 15:2004.", | ||
| "id": "/properties/spectral_data/properties/transmission_geometry", | ||
| "type": ["string", "null"], | ||
| "enum": ["0:0", "di:0", "de:0", "0:di", "0:de", "d:d", "other", null] | ||
| }, | ||
| "units": { | ||
| "description": "Required, unit or quantity of measurement for the spectral dataset.", | ||
| "id": "/properties/spectral_data/properties/units", | ||
| "type": "string", | ||
| "enum": ["flux", "absorptance", "transmittance", "reflectance", "intensity", "irradiance", "radiance", "exitance", "R-Factor", "T-Factor", "relative", "other"] | ||
| } | ||
| }, | ||
| "required": [ | ||
| "data", | ||
| "index", | ||
| "units" | ||
| ], | ||
| "type": "object" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "header", | ||
| "spectral_data" | ||
| ], | ||
| "type": "object" | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id called "api_version" where prop is "schema_version". on purpose?