Skip to content

Commit

Permalink
Merge pull request #81 from eclipse-thingweb/json-schema
Browse files Browse the repository at this point in the history
feat: update TD 1.1 JSON Schema to final version
  • Loading branch information
JKRhb committed Dec 19, 2023
2 parents d027ca8 + 2fa98a6 commit c33be91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/src/definitions/validation/thing_description_schema.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ThingDescriptionValidationException extends ValidationException {

final Map<String, dynamic> _rawThingDescriptionSchema = <String, dynamic>{
'title': 'Thing Description',
'version': '1.1-23-March-2023',
'version': '1.1-09-November-2023',
'description':
'JSON Schema for validating TD instances against the TD information '
'model. TD instances can be with or without terms that have default '
Expand Down Expand Up @@ -319,6 +319,7 @@ final Map<String, dynamic> _rawThingDescriptionSchema = <String, dynamic>{
'unobserveproperty',
],
},
'minItems': 1,
}
],
},
Expand All @@ -343,6 +344,7 @@ final Map<String, dynamic> _rawThingDescriptionSchema = <String, dynamic>{
'type': 'string',
'enum': ['invokeaction', 'queryaction', 'cancelaction'],
},
'minItems': 1,
}
],
},
Expand All @@ -367,6 +369,7 @@ final Map<String, dynamic> _rawThingDescriptionSchema = <String, dynamic>{
'type': 'string',
'enum': ['subscribeevent', 'unsubscribeevent'],
},
'minItems': 1,
}
],
},
Expand Down Expand Up @@ -411,6 +414,7 @@ final Map<String, dynamic> _rawThingDescriptionSchema = <String, dynamic>{
'unsubscribeallevents',
],
},
'minItems': 1,
}
],
},
Expand Down Expand Up @@ -833,7 +837,7 @@ final Map<String, dynamic> _rawThingDescriptionSchema = <String, dynamic>{
{'type': 'string'},
{
'type': 'string',
'enum': ['code', 'client', 'device'],
'enum': ['code', 'client'],
}
],
},
Expand Down

0 comments on commit c33be91

Please sign in to comment.