Skip to content

Commit

Permalink
Implemented ThingDefinition
Browse files Browse the repository at this point in the history
Signed-off-by: David Schwilk <david.schwilk@bosch-si.com>
  • Loading branch information
DerSchwilk committed Dec 9, 2019
1 parent 4e51eff commit e9fa0dc
Show file tree
Hide file tree
Showing 136 changed files with 6,736 additions and 673 deletions.
12 changes: 12 additions & 0 deletions documentation/src/main/resources/_data/sidebars/ditto_sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,18 @@ entries:
- title: Retrieve a single Attribute
url: /protocol-examples-retrieveattribute.html
output: web
- title: Create a Definition
url: /protocol-examples-createthingdefinition.html
output: web
- title: Delete a Definition
url: /protocol-examples-deletethingdefinition.html
output: web
- title: Modify a Definition
url: /protocol-examples-modifythingdefinition.html
output: web
- title: Retrieve a Definition
url: /protocol-examples-retrievethingdefinition.html
output: web
- title: Create Features
url: /protocol-examples-createfeatures.html
output: web
Expand Down
Binary file modified documentation/src/main/resources/images/pages/basic/ditto-class-diagram-v2.png
100644 → 100755
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions documentation/src/main/resources/jsonschema/thing_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
"type": "string",
"description": "Links to the ID of an existing Policy which contains the authorization information applied for this Thing. The policy ID has to conform to the namespaced entity ID notation (see [Ditto documentation on namespaced entity IDs](https://www.eclipse.org/ditto/basic-namespaces-and-names.html#namespaced-id))."
},
"definition": {
"title": "Definition",
"type": "string",
"description": "The definition of this Thing declaring its model in the form 'namespace:name:version'.",
"pattern": "([_a-zA-Z0-9\\-.]+):([_a-zA-Z0-9\\-.]+):([_a-zA-Z0-9\\-.]+)"
},
"attributes": {
"title": "Attributes",
"type": "object",
Expand All @@ -32,13 +38,13 @@
"definition": {
"title": "Definition",
"type": "array",
"description": "The Definition of the Feature, a list of Identifiers containing at least 1 Identifier in the form 'namespace:name:version'.",
"description": "The definition of the Feature declaring its model, a list of Identifiers containing at least 1 Identifier in the form 'namespace:name:version'.",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"description": "A single fully qualified Identifier of a Feature Definition in the form 'namespace:name:version'.",
"pattern": "(?<namespace>[_a-zA-Z0-9\\-.]+):(?<name>[_a-zA-Z0-9\\-.]+):(?<version>[_a-zA-Z0-9\\-.]+)"
"description": "A single fully qualified Identifier of a Feature definition in the form 'namespace:name:version'.",
"pattern": "([_a-zA-Z0-9\\-.]+):([_a-zA-Z0-9\\-.]+):([_a-zA-Z0-9\\-.]+)"
}
},
"properties": {
Expand Down
Loading

0 comments on commit e9fa0dc

Please sign in to comment.