-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish recent schema updates/fix See merge request pimplapps/tjf!24
- Loading branch information
Showing
4 changed files
with
593 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# tjf - schema definitions | ||
|
||
The schemas nested within folders are remnants of a legacy system, retained primarily for compatibility reasons. However, for the majority of users, these schemas serve little purpose in the modern context and can be safely disregarded. | ||
|
||
## measurementCollection | ||
The schema represents a structured collection of individual measurements like defined in [slim-schema](#slim-schema), each independent of the others. This collection is further enriched with some additional features, similar to those in slim-schema but only a small subset. | ||
|
||
## slim-schema | ||
The schema delineates a comprehensive data structure exported by Testo applications. It encompasses various components, including measurements, device channels, customer and organization details, measuring point information, and measurement properties. | ||
|
||
## measurement-slim | ||
This JSON schema, crucially used by the Testo 300 device when exporting measurement data using a QR code, defines a structured data object. | ||
|
||
Additionally, for those interested in delving deeper into the QR code functionality of the Testo 300 device, further information can be found at [this link](https://developers.testo.dev/t300/qrcode/). |
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,119 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"description": "A collection of measurements", | ||
"type": "object", | ||
"properties": { | ||
"additionalMeasurementInformation": { | ||
"description": "Additional information about the measurement", | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/measurementadditionalproperty" | ||
} | ||
}, | ||
"measurements": { | ||
"description": "An array of measurements that is part of this collection", | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://raw.githubusercontent.com/testo/tjf/public/schema/slim-schema-v1.2.0.json" | ||
} | ||
}, | ||
"customer": { | ||
"description": "Customer contact information", | ||
"$ref": "#/definitions/contact" | ||
}, | ||
"organisation": { | ||
"description": "Organisation contact information", | ||
"$ref": "#/definitions/contact" | ||
}, | ||
"images": { | ||
"description": "An array of image filenames", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"timeStamp": { | ||
"description": "The time when the whole data set was created, unix timestamp in milliseconds", | ||
"type": ["number","string"] | ||
}, | ||
"type": { | ||
"type": "object", | ||
"properties": { | ||
"id": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"id", | ||
"name" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"additionalMeasurementInformation", | ||
"timeStamp", | ||
"type" | ||
], | ||
"definitions": { | ||
"contact": { | ||
"description": "An object containing contact information", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"type": "string" | ||
}, | ||
"street": { | ||
"type": "string" | ||
}, | ||
"city": { | ||
"type": "string" | ||
}, | ||
"country": { | ||
"type": "string" | ||
}, | ||
"phone": { | ||
"type": "string" | ||
}, | ||
"email": { | ||
"type": "string" | ||
}, | ||
"personOfContact": { | ||
"type": "string" | ||
}, | ||
"fax": { | ||
"type": "string" | ||
}, | ||
"homepage": { | ||
"type": "string" | ||
}, | ||
"logo": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"measurementadditionalproperty": { | ||
"description": "A description of an additional property of a measurement", | ||
"type": "object", | ||
"properties": { | ||
"name": { | ||
"description": "The name of the property, translated into the current language of the application", | ||
"type": "string" | ||
}, | ||
"description": { | ||
"description": "The description of the property, translated into the current language of the application", | ||
"type": "string" | ||
}, | ||
"value": { | ||
"description": "Additional value", | ||
"type": [ "string", "integer", "number", "array", "object", "boolean" ], | ||
"optional": true | ||
} | ||
}, | ||
"required": [ "name" ], | ||
"additionalProperties": false | ||
} | ||
} | ||
} |
Oops, something went wrong.