-
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.
- Loading branch information
1 parent
47050ee
commit 03eab83
Showing
1 changed file
with
101 additions
and
101 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,106 @@ | ||
{ | ||
"$schema": "http://json-schema.org/schema#", | ||
"$schemaVersion": "0.0.1", | ||
"modelTags": "OCF", | ||
"$id": "https://smart-data-models.github.io/dataModel.OCF/BodyFat/schema.json", | ||
"title": "Smart Data models - BodyFat schema derived from the open connectivity foundation repository https://github.com/openconnectivityfoundation/IoTDataModels", | ||
"description": "This Resource describes the Properties associated with a person's body fat.The unit is a single value that is one of kg, lb or percent.If the unit Property is missing the default is kilograms [kg].The bodyfat and unit Properties are read-only values that are provided by the Server.When range is omitted the default is 0 to +MAXFLOAT.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$schemaVersion": "0.0.1", | ||
"modelTags": "OCF", | ||
"$id": "https://smart-data-models.github.io/dataModel.OCF/BodyFat/schema.json", | ||
"title": "Smart Data models - BodyFat schema derived from the open connectivity foundation repository https://github.com/openconnectivityfoundation/IoTDataModels", | ||
"description": "This Resource describes the Properties associated with a person's body fat.The unit is a single value that is one of kg, lb or percent.If the unit Property is missing the default is kilograms [kg].The bodyfat and unit Properties are read-only values that are provided by the Server.When range is omitted the default is 0 to +MAXFLOAT.", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" | ||
}, | ||
{ | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" | ||
}, | ||
{ | ||
"properties": { | ||
"rt": { | ||
"description": "Property. Resource Type", | ||
"items": { | ||
"enum": [ | ||
"oic.r.body.fat" | ||
], | ||
"type": "string", | ||
"maxLength": 64 | ||
}, | ||
"minItems": 1, | ||
"uniqueItems": true, | ||
"readOnly": true, | ||
"type": "array" | ||
}, | ||
{ | ||
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" | ||
"bodyfat": { | ||
"description": "Property. Body fat", | ||
"minimum": 0.0, | ||
"readOnly": true, | ||
"type": "number" | ||
}, | ||
{ | ||
"properties": { | ||
"rt": { | ||
"description": "Property. Resource Type", | ||
"items": { | ||
"enum": [ | ||
"oic.r.body.fat" | ||
], | ||
"type": "string", | ||
"maxLength": 64 | ||
}, | ||
"minItems": 1, | ||
"uniqueItems": true, | ||
"readOnly": true, | ||
"type": "array" | ||
}, | ||
"bodyfat": { | ||
"description": "Property. Body fat", | ||
"minimum": 0.0, | ||
"readOnly": true, | ||
"type": "number" | ||
}, | ||
"units": { | ||
"description": "Property. Body fat units", | ||
"enum": [ | ||
"kg", | ||
"lb", | ||
"percent" | ||
], | ||
"readOnly": true, | ||
"type": "string", | ||
"default": "kg" | ||
}, | ||
"range": { | ||
"type": "array", | ||
"description": "Property. The valid range for the Property in the Resource as a number. The first value in the array is the minimum value, the second value in the array is the maximum value", | ||
"readOnly": true, | ||
"minItems": 2, | ||
"maxItems": 2, | ||
"items": { | ||
"type": "number" | ||
} | ||
}, | ||
"step": { | ||
"description": "Property. Step value across the defined range an integer when the range is a number. This is the increment for valid values across the range; so if range is 0.0..10.0 and step is 2.5 then valid values are 0.0,2.5,5.0,7.5,10.0", | ||
"readOnly": true, | ||
"type": "number" | ||
}, | ||
"precision": { | ||
"type": "number", | ||
"readOnly": true, | ||
"description": "Property. When exposed the value in 'precision' provides a +/- tolerance against the Properties in the Resource. Thus if a Property is UPDATED to a value and that Property then RETRIEVED, the RETRIEVED value is valid if in the range of the set value +/- precision" | ||
}, | ||
"n": { | ||
"type": "string", | ||
"maxLength": 64, | ||
"readOnly": true, | ||
"description": "Property. Friendly name of the Resource" | ||
}, | ||
"if": { | ||
"description": "Property. The OCF Interface set supported by this Resource", | ||
"items": { | ||
"enum": [ | ||
"oic.if.s", | ||
"oic.if.baseline" | ||
], | ||
"type": "string", | ||
"maxLength": 64 | ||
}, | ||
"minItems": 1, | ||
"readOnly": true, | ||
"type": "array" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"BodyFat" | ||
], | ||
"description": "Property. NGSI entity type. It has to be BodyFat" | ||
} | ||
} | ||
"units": { | ||
"description": "Property. Body fat units", | ||
"enum": [ | ||
"kg", | ||
"lb", | ||
"percent" | ||
], | ||
"readOnly": true, | ||
"type": "string", | ||
"default": "kg" | ||
}, | ||
"range": { | ||
"type": "array", | ||
"description": "Property. The valid range for the Property in the Resource as a number. The first value in the array is the minimum value, the second value in the array is the maximum value", | ||
"readOnly": true, | ||
"minItems": 2, | ||
"maxItems": 2, | ||
"items": { | ||
"type": "number" | ||
} | ||
}, | ||
"step": { | ||
"description": "Property. Step value across the defined range an integer when the range is a number. This is the increment for valid values across the range; so if range is 0.0..10.0 and step is 2.5 then valid values are 0.0,2.5,5.0,7.5,10.0", | ||
"readOnly": true, | ||
"type": "number" | ||
}, | ||
"precision": { | ||
"type": "number", | ||
"readOnly": true, | ||
"description": "Property. When exposed the value in 'precision' provides a +/- tolerance against the Properties in the Resource. Thus if a Property is UPDATED to a value and that Property then RETRIEVED, the RETRIEVED value is valid if in the range of the set value +/- precision" | ||
}, | ||
"n": { | ||
"type": "string", | ||
"maxLength": 64, | ||
"readOnly": true, | ||
"description": "Property. Friendly name of the Resource" | ||
}, | ||
"if": { | ||
"description": "Property. The OCF Interface set supported by this Resource", | ||
"items": { | ||
"enum": [ | ||
"oic.if.s", | ||
"oic.if.baseline" | ||
], | ||
"type": "string", | ||
"maxLength": 64 | ||
}, | ||
"minItems": 1, | ||
"readOnly": true, | ||
"type": "array" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"BodyFat" | ||
], | ||
"description": "Property. NGSI entity type. It has to be BodyFat" | ||
} | ||
], | ||
"license": "https://github.com/openconnectivityfoundation/core/blob/e28a9e0a92e17042ba3e83661e4c0fbce8bdc4ba/LICENSE.md", | ||
"derivedFrom": "https://raw.githubusercontent.com/openconnectivityfoundation/IoTDataModels/master/BodyFatResURI.swagger.json", | ||
"required": [ | ||
"bodyfat", | ||
"id", | ||
"type" | ||
] | ||
} | ||
} | ||
], | ||
"license": "https://github.com/openconnectivityfoundation/core/blob/e28a9e0a92e17042ba3e83661e4c0fbce8bdc4ba/LICENSE.md", | ||
"derivedFrom": "https://raw.githubusercontent.com/openconnectivityfoundation/IoTDataModels/master/BodyFatResURI.swagger.json", | ||
"required": [ | ||
"bodyfat", | ||
"id", | ||
"type" | ||
] | ||
} |