From 2fa98a6d76d60c2c02e582a9d2fce8f2ab191fa0 Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Sun, 10 Dec 2023 20:41:12 +0100 Subject: [PATCH] feat: update TD 1.1 JSON Schema to final version --- .../definitions/validation/thing_description_schema.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/src/definitions/validation/thing_description_schema.dart b/lib/src/definitions/validation/thing_description_schema.dart index 9c6bd4b7..6cb7a546 100644 --- a/lib/src/definitions/validation/thing_description_schema.dart +++ b/lib/src/definitions/validation/thing_description_schema.dart @@ -34,7 +34,7 @@ class ThingDescriptionValidationException extends ValidationException { final Map _rawThingDescriptionSchema = { '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 ' @@ -319,6 +319,7 @@ final Map _rawThingDescriptionSchema = { 'unobserveproperty', ], }, + 'minItems': 1, } ], }, @@ -343,6 +344,7 @@ final Map _rawThingDescriptionSchema = { 'type': 'string', 'enum': ['invokeaction', 'queryaction', 'cancelaction'], }, + 'minItems': 1, } ], }, @@ -367,6 +369,7 @@ final Map _rawThingDescriptionSchema = { 'type': 'string', 'enum': ['subscribeevent', 'unsubscribeevent'], }, + 'minItems': 1, } ], }, @@ -411,6 +414,7 @@ final Map _rawThingDescriptionSchema = { 'unsubscribeallevents', ], }, + 'minItems': 1, } ], }, @@ -833,7 +837,7 @@ final Map _rawThingDescriptionSchema = { {'type': 'string'}, { 'type': 'string', - 'enum': ['code', 'client', 'device'], + 'enum': ['code', 'client'], } ], },