From f0b13c0989679da2fe4f47900e2aeb552fe9c1fb Mon Sep 17 00:00:00 2001 From: Auto Gen Date: Tue, 10 Dec 2024 12:07:27 -0800 Subject: [PATCH] restore Onvif limit extension and update limit values --- .../generated/ContextCollection.g.cs | 13 +- .../src/DTDLParser/generated/DTArrayInfo.g.cs | 32 +- .../DTDLParser/generated/DTBooleanInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTByteInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTBytesInfo.g.cs | 24 +- .../DTDLParser/generated/DTCommandInfo.g.cs | 24 +- .../generated/DTCommandPayloadInfo.g.cs | 24 +- .../generated/DTCommandRequestInfo.g.cs | 24 +- .../generated/DTCommandResponseInfo.g.cs | 24 +- .../generated/DTCommandTypeInfo.g.cs | 24 +- .../generated/DTComplexSchemaInfo.g.cs | 32 +- .../DTDLParser/generated/DTComponentInfo.g.cs | 24 +- .../DTDLParser/generated/DTContentInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTDateInfo.g.cs | 24 +- .../DTDLParser/generated/DTDateTimeInfo.g.cs | 24 +- .../DTDLParser/generated/DTDecimalInfo.g.cs | 24 +- .../DTDLParser/generated/DTDoubleInfo.g.cs | 24 +- .../DTDLParser/generated/DTDurationInfo.g.cs | 24 +- .../DTDLParser/generated/DTEntityInfo.g.cs | 32 +- .../src/DTDLParser/generated/DTEnumInfo.g.cs | 32 +- .../DTDLParser/generated/DTEnumValueInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTFieldInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTFloatInfo.g.cs | 24 +- .../DTDLParser/generated/DTIntegerInfo.g.cs | 24 +- .../DTDLParser/generated/DTInterfaceInfo.g.cs | 56 +- .../generated/DTLatentTypeInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTLongInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTMapInfo.g.cs | 32 +- .../DTDLParser/generated/DTMapKeyInfo.g.cs | 24 +- .../DTDLParser/generated/DTMapValueInfo.g.cs | 24 +- .../generated/DTNamedEntityInfo.g.cs | 24 +- .../generated/DTNamedLatentTypeInfo.g.cs | 24 +- .../generated/DTNumericSchemaInfo.g.cs | 24 +- .../DTDLParser/generated/DTObjectInfo.g.cs | 32 +- .../generated/DTPrimitiveSchemaInfo.g.cs | 24 +- .../DTDLParser/generated/DTPropertyInfo.g.cs | 24 +- .../generated/DTRelationshipInfo.g.cs | 24 +- .../generated/DTSchemaFieldInfo.g.cs | 24 +- .../DTDLParser/generated/DTSchemaInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTShortInfo.g.cs | 24 +- .../DTDLParser/generated/DTStringInfo.g.cs | 24 +- .../DTDLParser/generated/DTTelemetryInfo.g.cs | 24 +- .../generated/DTTemporalSchemaInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTTimeInfo.g.cs | 24 +- .../generated/DTUnitAttributeInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTUnitInfo.g.cs | 24 +- .../generated/DTUnsignedByteInfo.g.cs | 24 +- .../generated/DTUnsignedIntegerInfo.g.cs | 24 +- .../generated/DTUnsignedLongInfo.g.cs | 24 +- .../generated/DTUnsignedShortInfo.g.cs | 24 +- .../src/DTDLParser/generated/DTUuidInfo.g.cs | 24 +- .../src/DTDLParser/generated/IdValidator.g.cs | 2 + .../generated/PartitionTypeCollection.g.cs | 1 + .../generated/SupplementalTypeCollection.g.cs | 1 + .../generated/DocExampleUnitTest.g.cs | 1 + .../generated/ParserUnitTest.g.cs | 29 + dtdl/dtdl.json | 1 + dtdl/dtdl_digest.json | 499 ++++++++++++------ .../UnspecifiedDocExample-en-US-10-V4.json | 17 +- .../onvifDocExample-en-US-1-V1.json | 118 +++++ .../generated/ArrayMaxDeepOnvifLimitsV4.json | 123 +++++ .../generated/ArrayTooDeepOnvifLimitsV4.json | 141 +++++ ...rfaceExtendsMaxLongChainOnvifLimitsV4.json | 162 ++++++ ...rfaceExtendsTooLongChainOnvifLimitsV4.json | 160 ++++++ .../generated/MapMaxDeepOnvifLimitsV4.json | 291 ++++++++++ .../generated/MapTooDeepOnvifLimitsV4.json | 316 +++++++++++ .../generated/ObjectMaxDeepOnvifLimitsV4.json | 197 +++++++ .../generated/ObjectTooDeepOnvifLimitsV4.json | 218 ++++++++ ...emetryDescriptionMaxLongOnvifLimitsV4.json | 45 ++ .../TelemetryDescriptionMaxLongV2.json | 36 ++ .../TelemetryDescriptionMaxLongV3.json | 36 ++ .../TelemetryDescriptionMaxLongV4.json | 36 ++ ...emetryDescriptionTooLongOnvifLimitsV4.json | 43 ++ .../TelemetryDescriptionTooLongV2.json | 34 ++ .../TelemetryDescriptionTooLongV3.json | 34 ++ .../TelemetryDescriptionTooLongV4.json | 34 ++ ...ArrayElementValueTooLongOnvifLimitsV4.json | 52 ++ ...eLanguageMapValueTooLongOnvifLimitsV4.json | 46 ++ ...DisplayNameStringTooLongOnvifLimitsV4.json | 43 ++ .../TelemetryNameMaxLongOnvifLimitsV4.json | 41 ++ .../TelemetryNameTooLongOnvifLimitsV4.json | 42 ++ ...tryWithFeatureContextAfterLimitlessV4.json | 48 ++ ...etryWithInvalidLimitContextFragmentV4.json | 42 ++ ...lemetryWithLeadingOnvifLimitContextV4.json | 48 ++ ...ryWithNonFollowingOnvifLimitContextV4.json | 48 ++ ...emetryWithOnvifAndExtensionContextsV4.json | 54 ++ ...tryWithOnvifLimitsAcceptableVersionV4.json | 41 ++ ...elemetryWithOnvifLimitsUnacceptableV4.json | 40 ++ ...yWithOnvifLimitsUnacceptableVersionV4.json | 42 ++ ...ent-ExtensionLimitsFollowsLimitlessV4.json | 168 +++++- ...nt-LimitlessContextFollowedByLimitsV4.json | 19 + 91 files changed, 4306 insertions(+), 336 deletions(-) create mode 100644 test-cases/doc-examples/onvifDocExample-en-US-1-V1.json create mode 100644 test-cases/generated/ArrayMaxDeepOnvifLimitsV4.json create mode 100644 test-cases/generated/ArrayTooDeepOnvifLimitsV4.json create mode 100644 test-cases/generated/InterfaceExtendsMaxLongChainOnvifLimitsV4.json create mode 100644 test-cases/generated/InterfaceExtendsTooLongChainOnvifLimitsV4.json create mode 100644 test-cases/generated/MapMaxDeepOnvifLimitsV4.json create mode 100644 test-cases/generated/MapTooDeepOnvifLimitsV4.json create mode 100644 test-cases/generated/ObjectMaxDeepOnvifLimitsV4.json create mode 100644 test-cases/generated/ObjectTooDeepOnvifLimitsV4.json create mode 100644 test-cases/generated/TelemetryDescriptionMaxLongOnvifLimitsV4.json create mode 100644 test-cases/generated/TelemetryDescriptionMaxLongV2.json create mode 100644 test-cases/generated/TelemetryDescriptionMaxLongV3.json create mode 100644 test-cases/generated/TelemetryDescriptionMaxLongV4.json create mode 100644 test-cases/generated/TelemetryDescriptionTooLongOnvifLimitsV4.json create mode 100644 test-cases/generated/TelemetryDescriptionTooLongV2.json create mode 100644 test-cases/generated/TelemetryDescriptionTooLongV3.json create mode 100644 test-cases/generated/TelemetryDescriptionTooLongV4.json create mode 100644 test-cases/generated/TelemetryDisplayNameArrayElementValueTooLongOnvifLimitsV4.json create mode 100644 test-cases/generated/TelemetryDisplayNameLanguageMapValueTooLongOnvifLimitsV4.json create mode 100644 test-cases/generated/TelemetryDisplayNameStringTooLongOnvifLimitsV4.json create mode 100644 test-cases/generated/TelemetryNameMaxLongOnvifLimitsV4.json create mode 100644 test-cases/generated/TelemetryNameTooLongOnvifLimitsV4.json create mode 100644 test-cases/generated/TelemetryWithFeatureContextAfterLimitlessV4.json create mode 100644 test-cases/generated/TelemetryWithInvalidLimitContextFragmentV4.json create mode 100644 test-cases/generated/TelemetryWithLeadingOnvifLimitContextV4.json create mode 100644 test-cases/generated/TelemetryWithNonFollowingOnvifLimitContextV4.json create mode 100644 test-cases/generated/TelemetryWithOnvifAndExtensionContextsV4.json create mode 100644 test-cases/generated/TelemetryWithOnvifLimitsAcceptableVersionV4.json create mode 100644 test-cases/generated/TelemetryWithOnvifLimitsUnacceptableV4.json create mode 100644 test-cases/generated/TelemetryWithOnvifLimitsUnacceptableVersionV4.json diff --git a/dotnet/src/DTDLParser/generated/ContextCollection.g.cs b/dotnet/src/DTDLParser/generated/ContextCollection.g.cs index f7bd4524..0b056624 100644 --- a/dotnet/src/DTDLParser/generated/ContextCollection.g.cs +++ b/dotnet/src/DTDLParser/generated/ContextCollection.g.cs @@ -43,7 +43,8 @@ static ContextCollection() EndogenousAffiliateContextHistories["dtmi:dtdl:extension:overriding"] = GetAffiliate3ContextHistory(); EndogenousAffiliateContextHistories["dtmi:dtdl:extension:quantitativeTypes"] = GetAffiliate4ContextHistory(); EndogenousAffiliateContextHistories["dtmi:dtdl:extension:requirement"] = GetAffiliate5ContextHistory(); - EndogenousAffiliateContextHistories["dtmi:iotcentral:context"] = GetAffiliate6ContextHistory(); + EndogenousAffiliateContextHistories["dtmi:dtdl:limits:onvif"] = GetAffiliate6ContextHistory(); + EndogenousAffiliateContextHistories["dtmi:iotcentral:context"] = GetAffiliate7ContextHistory(); } private static ContextHistory GetAffiliate0ContextHistory() @@ -911,6 +912,16 @@ private static ContextHistory GetAffiliate6ContextHistory() { List versionedContexts = new List(); + VersionedContext context1_0 = new VersionedContext("dtmi:dtdl:limits:onvif;1", 1, 0, 4, "onvif_1", mergeDefinitions: false); + versionedContexts.Add(context1_0); + + return new ContextHistory(versionedContexts); + } + + private static ContextHistory GetAffiliate7ContextHistory() + { + List versionedContexts = new List(); + VersionedContext context2_0 = new VersionedContext("dtmi:iotcentral:context;2", 2, 0, 0, null, mergeDefinitions: false); context2_0.ReserveIdDefinitionPrefix("dtmi:iotcentral:"); context2_0.AddTermDefinition("AccelerationVector", new Dtmi("dtmi:iotcentral:class:AccelerationVector;2"), isMergeableType: false); diff --git a/dotnet/src/DTDLParser/generated/DTArrayInfo.g.cs b/dotnet/src/DTDLParser/generated/DTArrayInfo.g.cs index 97800866..bc3391e6 100644 --- a/dotnet/src/DTDLParser/generated/DTArrayInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTArrayInfo.g.cs @@ -2842,7 +2842,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2903,7 +2909,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2950,7 +2962,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) @@ -3362,7 +3380,13 @@ private void CheckRestrictionsV4(ParsingErrorCollection parsingErrorCollection) } } - int maxDepthOfElementSchemaOrSchema = 8; + int maxDepthOfElementSchemaOrSchema = this.LimitSpecifier switch + { + "" => 8, + "onvif_1" => 24, + _ => 0, + }; + List tooDeepElementSchemaOrSchemaElementIds = new List(); if (!this.CheckDepthOfElementSchemaOrSchema(0, maxDepthOfElementSchemaOrSchema, true, tooDeepElementSchemaOrSchemaElementIds, out Dictionary tooDeepElementSchemaOrSchemaElts, parsingErrorCollection) && tooDeepElementSchemaOrSchemaElementIds != null) { diff --git a/dotnet/src/DTDLParser/generated/DTBooleanInfo.g.cs b/dotnet/src/DTDLParser/generated/DTBooleanInfo.g.cs index 934dbde1..1f7191ff 100644 --- a/dotnet/src/DTDLParser/generated/DTBooleanInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTBooleanInfo.g.cs @@ -2595,7 +2595,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2656,7 +2662,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2703,7 +2715,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTByteInfo.g.cs b/dotnet/src/DTDLParser/generated/DTByteInfo.g.cs index 23ece1f3..90274ad9 100644 --- a/dotnet/src/DTDLParser/generated/DTByteInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTByteInfo.g.cs @@ -1548,7 +1548,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -1609,7 +1615,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -1656,7 +1668,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTBytesInfo.g.cs b/dotnet/src/DTDLParser/generated/DTBytesInfo.g.cs index 5b21da7c..4891c85b 100644 --- a/dotnet/src/DTDLParser/generated/DTBytesInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTBytesInfo.g.cs @@ -1537,7 +1537,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -1598,7 +1604,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -1645,7 +1657,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTCommandInfo.g.cs b/dotnet/src/DTDLParser/generated/DTCommandInfo.g.cs index c540f1dc..14a74e7d 100644 --- a/dotnet/src/DTDLParser/generated/DTCommandInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTCommandInfo.g.cs @@ -3234,7 +3234,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3295,7 +3301,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3342,7 +3354,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTCommandPayloadInfo.g.cs b/dotnet/src/DTDLParser/generated/DTCommandPayloadInfo.g.cs index 8f05e1d6..bb697c7f 100644 --- a/dotnet/src/DTDLParser/generated/DTCommandPayloadInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTCommandPayloadInfo.g.cs @@ -2979,7 +2979,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3040,7 +3046,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3087,7 +3099,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTCommandRequestInfo.g.cs b/dotnet/src/DTDLParser/generated/DTCommandRequestInfo.g.cs index 66664e9b..94e6acb8 100644 --- a/dotnet/src/DTDLParser/generated/DTCommandRequestInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTCommandRequestInfo.g.cs @@ -2386,7 +2386,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2447,7 +2453,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2494,7 +2506,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTCommandResponseInfo.g.cs b/dotnet/src/DTDLParser/generated/DTCommandResponseInfo.g.cs index c29b2986..08d598ec 100644 --- a/dotnet/src/DTDLParser/generated/DTCommandResponseInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTCommandResponseInfo.g.cs @@ -2386,7 +2386,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2447,7 +2453,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2494,7 +2506,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTCommandTypeInfo.g.cs b/dotnet/src/DTDLParser/generated/DTCommandTypeInfo.g.cs index 0a53eb0b..3d4f59f0 100644 --- a/dotnet/src/DTDLParser/generated/DTCommandTypeInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTCommandTypeInfo.g.cs @@ -2515,7 +2515,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2576,7 +2582,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2623,7 +2635,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTComplexSchemaInfo.g.cs b/dotnet/src/DTDLParser/generated/DTComplexSchemaInfo.g.cs index baf63c2b..79ea40bb 100644 --- a/dotnet/src/DTDLParser/generated/DTComplexSchemaInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTComplexSchemaInfo.g.cs @@ -2297,7 +2297,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2339,7 +2345,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2386,7 +2398,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) @@ -2587,7 +2605,13 @@ private void CheckRestrictionsV3(ParsingErrorCollection parsingErrorCollection) /// private void CheckRestrictionsV4(ParsingErrorCollection parsingErrorCollection) { - int maxDepthOfElementSchemaOrSchema = 8; + int maxDepthOfElementSchemaOrSchema = this.LimitSpecifier switch + { + "" => 8, + "onvif_1" => 24, + _ => 0, + }; + List tooDeepElementSchemaOrSchemaElementIds = new List(); if (!this.CheckDepthOfElementSchemaOrSchema(0, maxDepthOfElementSchemaOrSchema, true, tooDeepElementSchemaOrSchemaElementIds, out Dictionary tooDeepElementSchemaOrSchemaElts, parsingErrorCollection) && tooDeepElementSchemaOrSchemaElementIds != null) { diff --git a/dotnet/src/DTDLParser/generated/DTComponentInfo.g.cs b/dotnet/src/DTDLParser/generated/DTComponentInfo.g.cs index 692f3db2..ebad8932 100644 --- a/dotnet/src/DTDLParser/generated/DTComponentInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTComponentInfo.g.cs @@ -2972,7 +2972,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3033,7 +3039,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3080,7 +3092,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTContentInfo.g.cs b/dotnet/src/DTDLParser/generated/DTContentInfo.g.cs index 16d0d518..d4dce65d 100644 --- a/dotnet/src/DTDLParser/generated/DTContentInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTContentInfo.g.cs @@ -2438,7 +2438,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2480,7 +2486,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2527,7 +2539,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTDateInfo.g.cs b/dotnet/src/DTDLParser/generated/DTDateInfo.g.cs index 0723d773..e87e6e7b 100644 --- a/dotnet/src/DTDLParser/generated/DTDateInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTDateInfo.g.cs @@ -2614,7 +2614,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2675,7 +2681,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2722,7 +2734,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTDateTimeInfo.g.cs b/dotnet/src/DTDLParser/generated/DTDateTimeInfo.g.cs index 16eb0ab7..4edf5ad8 100644 --- a/dotnet/src/DTDLParser/generated/DTDateTimeInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTDateTimeInfo.g.cs @@ -2614,7 +2614,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2675,7 +2681,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2722,7 +2734,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTDecimalInfo.g.cs b/dotnet/src/DTDLParser/generated/DTDecimalInfo.g.cs index 2ee0622e..baa8ea66 100644 --- a/dotnet/src/DTDLParser/generated/DTDecimalInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTDecimalInfo.g.cs @@ -1550,7 +1550,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -1611,7 +1617,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -1658,7 +1670,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTDoubleInfo.g.cs b/dotnet/src/DTDLParser/generated/DTDoubleInfo.g.cs index a1c36550..c1802d93 100644 --- a/dotnet/src/DTDLParser/generated/DTDoubleInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTDoubleInfo.g.cs @@ -2608,7 +2608,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2669,7 +2675,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2716,7 +2728,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTDurationInfo.g.cs b/dotnet/src/DTDLParser/generated/DTDurationInfo.g.cs index 731b5ac3..d02fe5d8 100644 --- a/dotnet/src/DTDLParser/generated/DTDurationInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTDurationInfo.g.cs @@ -2614,7 +2614,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2675,7 +2681,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2722,7 +2734,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTEntityInfo.g.cs b/dotnet/src/DTDLParser/generated/DTEntityInfo.g.cs index e4197e72..5363a4c0 100644 --- a/dotnet/src/DTDLParser/generated/DTEntityInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTEntityInfo.g.cs @@ -2092,7 +2092,13 @@ internal static bool TryParseTypeStringV4(string typeString, Dtmi elementId, str return true; case "Interface": case "dtmi:dtdl:class:Interface;4": - int interfaceMaxIdLength = 128; + int interfaceMaxIdLength = aggregateContext.LimitSpecifier switch + { + "" => 128, + "onvif_1" => 256, + _ => 0, + }; + if (elementId.AbsoluteUri.Length > interfaceMaxIdLength) { parsingErrorCollection.Notify( @@ -3224,7 +3230,13 @@ internal virtual void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3266,7 +3278,13 @@ internal virtual void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3313,7 +3331,13 @@ internal virtual void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTEnumInfo.g.cs b/dotnet/src/DTDLParser/generated/DTEnumInfo.g.cs index ebb8f446..d6fa6c38 100644 --- a/dotnet/src/DTDLParser/generated/DTEnumInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTEnumInfo.g.cs @@ -2967,7 +2967,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3028,7 +3034,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3075,7 +3087,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) @@ -3722,7 +3740,13 @@ private void CheckRestrictionsV4(ParsingErrorCollection parsingErrorCollection) } } - int maxDepthOfElementSchemaOrSchema = 8; + int maxDepthOfElementSchemaOrSchema = this.LimitSpecifier switch + { + "" => 8, + "onvif_1" => 24, + _ => 0, + }; + List tooDeepElementSchemaOrSchemaElementIds = new List(); if (!this.CheckDepthOfElementSchemaOrSchema(0, maxDepthOfElementSchemaOrSchema, true, tooDeepElementSchemaOrSchemaElementIds, out Dictionary tooDeepElementSchemaOrSchemaElts, parsingErrorCollection) && tooDeepElementSchemaOrSchemaElementIds != null) { diff --git a/dotnet/src/DTDLParser/generated/DTEnumValueInfo.g.cs b/dotnet/src/DTDLParser/generated/DTEnumValueInfo.g.cs index 9321c456..3c2eb91c 100644 --- a/dotnet/src/DTDLParser/generated/DTEnumValueInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTEnumValueInfo.g.cs @@ -2961,7 +2961,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3022,7 +3028,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3069,7 +3081,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTFieldInfo.g.cs b/dotnet/src/DTDLParser/generated/DTFieldInfo.g.cs index a0627f56..69c1af96 100644 --- a/dotnet/src/DTDLParser/generated/DTFieldInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTFieldInfo.g.cs @@ -2984,7 +2984,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3045,7 +3051,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3092,7 +3104,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTFloatInfo.g.cs b/dotnet/src/DTDLParser/generated/DTFloatInfo.g.cs index bbcd6a61..ed211ad4 100644 --- a/dotnet/src/DTDLParser/generated/DTFloatInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTFloatInfo.g.cs @@ -2608,7 +2608,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2669,7 +2675,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2716,7 +2728,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTIntegerInfo.g.cs b/dotnet/src/DTDLParser/generated/DTIntegerInfo.g.cs index 10825ff8..7fc3375a 100644 --- a/dotnet/src/DTDLParser/generated/DTIntegerInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTIntegerInfo.g.cs @@ -2608,7 +2608,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2669,7 +2675,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2716,7 +2728,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTInterfaceInfo.g.cs b/dotnet/src/DTDLParser/generated/DTInterfaceInfo.g.cs index 330aa12e..26f94aed 100644 --- a/dotnet/src/DTDLParser/generated/DTInterfaceInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTInterfaceInfo.g.cs @@ -1585,7 +1585,13 @@ internal static bool TryParseTypeStringV4(string typeString, Dtmi elementId, str { case "Interface": case "dtmi:dtdl:class:Interface;4": - int interfaceMaxIdLength = 128; + int interfaceMaxIdLength = aggregateContext.LimitSpecifier switch + { + "" => 128, + "onvif_1" => 256, + _ => 0, + }; + if (elementId.AbsoluteUri.Length > interfaceMaxIdLength) { parsingErrorCollection.Notify( @@ -3214,7 +3220,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3294,7 +3306,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3341,7 +3359,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) @@ -3736,7 +3760,13 @@ private void ApplyTransformationsV4(Model model, ParsingErrorCollection parsingE this.originalContents = new Dictionary((Dictionary)this.Contents); } - int maxDepthOfExtends = 12; + int maxDepthOfExtends = this.LimitSpecifier switch + { + "" => 12, + "onvif_1" => 12, + _ => 0, + }; + List tooDeepElementIds = new List(); HashSet sources = this.GetTransitiveExtendsNarrow(0, maxDepthOfExtends, false, tooDeepElementIds, out Dictionary tooDeepElts, parsingErrorCollection); @@ -3847,7 +3877,13 @@ private void CheckRestrictionsV3(ParsingErrorCollection parsingErrorCollection) /// private void CheckRestrictionsV4(ParsingErrorCollection parsingErrorCollection) { - int maxCountOfExtends = 1024; + int maxCountOfExtends = this.LimitSpecifier switch + { + "" => 1024, + "onvif_1" => 1024, + _ => 0, + }; + int numExtendsNarrowValues = this.GetCountOfExtendsNarrow(false, parsingErrorCollection); if (numExtendsNarrowValues > maxCountOfExtends) { @@ -3860,7 +3896,13 @@ private void CheckRestrictionsV4(ParsingErrorCollection parsingErrorCollection) element: this.JsonLdElements.First().Value); } - int maxCountOfContentsOrFieldsOrEnumValuesOrRequestOrResponseOrPropertiesOrSchemaOrElementSchemaOrMapValue = 100000; + int maxCountOfContentsOrFieldsOrEnumValuesOrRequestOrResponseOrPropertiesOrSchemaOrElementSchemaOrMapValue = this.LimitSpecifier switch + { + "" => 100000, + "onvif_1" => 100000, + _ => 0, + }; + int numContentsOrFieldsOrEnumValuesOrRequestOrResponseOrPropertiesOrSchemaOrElementSchemaOrMapValueNarrowValues = this.GetCountOfContentsOrFieldsOrEnumValuesOrRequestOrResponseOrPropertiesOrSchemaOrElementSchemaOrMapValueNarrow(true, parsingErrorCollection); if (numContentsOrFieldsOrEnumValuesOrRequestOrResponseOrPropertiesOrSchemaOrElementSchemaOrMapValueNarrowValues > maxCountOfContentsOrFieldsOrEnumValuesOrRequestOrResponseOrPropertiesOrSchemaOrElementSchemaOrMapValue) { diff --git a/dotnet/src/DTDLParser/generated/DTLatentTypeInfo.g.cs b/dotnet/src/DTDLParser/generated/DTLatentTypeInfo.g.cs index 3a55e97b..31e50be7 100644 --- a/dotnet/src/DTDLParser/generated/DTLatentTypeInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTLatentTypeInfo.g.cs @@ -2008,7 +2008,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2069,7 +2075,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2116,7 +2128,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTLongInfo.g.cs b/dotnet/src/DTDLParser/generated/DTLongInfo.g.cs index b4d3e04d..19dd23a5 100644 --- a/dotnet/src/DTDLParser/generated/DTLongInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTLongInfo.g.cs @@ -2608,7 +2608,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2669,7 +2675,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2716,7 +2728,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTMapInfo.g.cs b/dotnet/src/DTDLParser/generated/DTMapInfo.g.cs index 79bb4577..b6214d0f 100644 --- a/dotnet/src/DTDLParser/generated/DTMapInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTMapInfo.g.cs @@ -2997,7 +2997,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3058,7 +3064,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3105,7 +3117,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) @@ -3625,7 +3643,13 @@ private void CheckRestrictionsV4(ParsingErrorCollection parsingErrorCollection) } } - int maxDepthOfElementSchemaOrSchema = 8; + int maxDepthOfElementSchemaOrSchema = this.LimitSpecifier switch + { + "" => 8, + "onvif_1" => 24, + _ => 0, + }; + List tooDeepElementSchemaOrSchemaElementIds = new List(); if (!this.CheckDepthOfElementSchemaOrSchema(0, maxDepthOfElementSchemaOrSchema, true, tooDeepElementSchemaOrSchemaElementIds, out Dictionary tooDeepElementSchemaOrSchemaElts, parsingErrorCollection) && tooDeepElementSchemaOrSchemaElementIds != null) { diff --git a/dotnet/src/DTDLParser/generated/DTMapKeyInfo.g.cs b/dotnet/src/DTDLParser/generated/DTMapKeyInfo.g.cs index a428b341..8993077c 100644 --- a/dotnet/src/DTDLParser/generated/DTMapKeyInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTMapKeyInfo.g.cs @@ -2959,7 +2959,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3020,7 +3026,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3067,7 +3079,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTMapValueInfo.g.cs b/dotnet/src/DTDLParser/generated/DTMapValueInfo.g.cs index 297ae5f8..1588ff0a 100644 --- a/dotnet/src/DTDLParser/generated/DTMapValueInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTMapValueInfo.g.cs @@ -2984,7 +2984,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3045,7 +3051,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3092,7 +3104,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTNamedEntityInfo.g.cs b/dotnet/src/DTDLParser/generated/DTNamedEntityInfo.g.cs index 101a102a..3449480b 100644 --- a/dotnet/src/DTDLParser/generated/DTNamedEntityInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTNamedEntityInfo.g.cs @@ -2498,7 +2498,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2540,7 +2546,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2587,7 +2599,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTNamedLatentTypeInfo.g.cs b/dotnet/src/DTDLParser/generated/DTNamedLatentTypeInfo.g.cs index 91e27764..2534ee93 100644 --- a/dotnet/src/DTDLParser/generated/DTNamedLatentTypeInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTNamedLatentTypeInfo.g.cs @@ -2106,7 +2106,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2167,7 +2173,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2214,7 +2226,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTNumericSchemaInfo.g.cs b/dotnet/src/DTDLParser/generated/DTNumericSchemaInfo.g.cs index f69d7ff4..564c6c38 100644 --- a/dotnet/src/DTDLParser/generated/DTNumericSchemaInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTNumericSchemaInfo.g.cs @@ -2185,7 +2185,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2227,7 +2233,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2274,7 +2286,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTObjectInfo.g.cs b/dotnet/src/DTDLParser/generated/DTObjectInfo.g.cs index c75f72fd..05a175e8 100644 --- a/dotnet/src/DTDLParser/generated/DTObjectInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTObjectInfo.g.cs @@ -2802,7 +2802,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2863,7 +2869,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2910,7 +2922,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) @@ -3336,7 +3354,13 @@ private void CheckRestrictionsV4(ParsingErrorCollection parsingErrorCollection) fieldsNameSet.Add(item.Name); } - int maxDepthOfElementSchemaOrSchema = 8; + int maxDepthOfElementSchemaOrSchema = this.LimitSpecifier switch + { + "" => 8, + "onvif_1" => 24, + _ => 0, + }; + List tooDeepElementSchemaOrSchemaElementIds = new List(); if (!this.CheckDepthOfElementSchemaOrSchema(0, maxDepthOfElementSchemaOrSchema, true, tooDeepElementSchemaOrSchemaElementIds, out Dictionary tooDeepElementSchemaOrSchemaElts, parsingErrorCollection) && tooDeepElementSchemaOrSchemaElementIds != null) { diff --git a/dotnet/src/DTDLParser/generated/DTPrimitiveSchemaInfo.g.cs b/dotnet/src/DTDLParser/generated/DTPrimitiveSchemaInfo.g.cs index e4ac8cf2..b9265e2a 100644 --- a/dotnet/src/DTDLParser/generated/DTPrimitiveSchemaInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTPrimitiveSchemaInfo.g.cs @@ -2192,7 +2192,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2234,7 +2240,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2281,7 +2293,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTPropertyInfo.g.cs b/dotnet/src/DTDLParser/generated/DTPropertyInfo.g.cs index 70434844..b55f20ea 100644 --- a/dotnet/src/DTDLParser/generated/DTPropertyInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTPropertyInfo.g.cs @@ -3115,7 +3115,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3176,7 +3182,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3223,7 +3235,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTRelationshipInfo.g.cs b/dotnet/src/DTDLParser/generated/DTRelationshipInfo.g.cs index 3ada7214..c51be3cb 100644 --- a/dotnet/src/DTDLParser/generated/DTRelationshipInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTRelationshipInfo.g.cs @@ -3454,7 +3454,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3515,7 +3521,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3562,7 +3574,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTSchemaFieldInfo.g.cs b/dotnet/src/DTDLParser/generated/DTSchemaFieldInfo.g.cs index 34ec29fc..881082c4 100644 --- a/dotnet/src/DTDLParser/generated/DTSchemaFieldInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTSchemaFieldInfo.g.cs @@ -2500,7 +2500,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2542,7 +2548,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2589,7 +2601,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTSchemaInfo.g.cs b/dotnet/src/DTDLParser/generated/DTSchemaInfo.g.cs index 0d6652a6..15c2274a 100644 --- a/dotnet/src/DTDLParser/generated/DTSchemaInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTSchemaInfo.g.cs @@ -2323,7 +2323,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2365,7 +2371,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2412,7 +2424,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTShortInfo.g.cs b/dotnet/src/DTDLParser/generated/DTShortInfo.g.cs index 0af616fb..8ca8a0f7 100644 --- a/dotnet/src/DTDLParser/generated/DTShortInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTShortInfo.g.cs @@ -1548,7 +1548,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -1609,7 +1615,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -1656,7 +1668,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTStringInfo.g.cs b/dotnet/src/DTDLParser/generated/DTStringInfo.g.cs index 869e6905..7bcc943c 100644 --- a/dotnet/src/DTDLParser/generated/DTStringInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTStringInfo.g.cs @@ -2595,7 +2595,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2656,7 +2662,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2703,7 +2715,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTTelemetryInfo.g.cs b/dotnet/src/DTDLParser/generated/DTTelemetryInfo.g.cs index 9a940c31..0cad8b6b 100644 --- a/dotnet/src/DTDLParser/generated/DTTelemetryInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTTelemetryInfo.g.cs @@ -2972,7 +2972,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -3033,7 +3039,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -3080,7 +3092,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTTemporalSchemaInfo.g.cs b/dotnet/src/DTDLParser/generated/DTTemporalSchemaInfo.g.cs index d2b32a52..d161db8f 100644 --- a/dotnet/src/DTDLParser/generated/DTTemporalSchemaInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTTemporalSchemaInfo.g.cs @@ -2178,7 +2178,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2220,7 +2226,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2267,7 +2279,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTTimeInfo.g.cs b/dotnet/src/DTDLParser/generated/DTTimeInfo.g.cs index 57d5d173..8a2fc036 100644 --- a/dotnet/src/DTDLParser/generated/DTTimeInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTTimeInfo.g.cs @@ -2614,7 +2614,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2675,7 +2681,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2722,7 +2734,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTUnitAttributeInfo.g.cs b/dotnet/src/DTDLParser/generated/DTUnitAttributeInfo.g.cs index 92e837ee..acbbf6fc 100644 --- a/dotnet/src/DTDLParser/generated/DTUnitAttributeInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTUnitAttributeInfo.g.cs @@ -2603,7 +2603,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2664,7 +2670,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2711,7 +2723,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTUnitInfo.g.cs b/dotnet/src/DTDLParser/generated/DTUnitInfo.g.cs index 1ebcdc42..8ec48059 100644 --- a/dotnet/src/DTDLParser/generated/DTUnitInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTUnitInfo.g.cs @@ -2585,7 +2585,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -2646,7 +2652,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -2693,7 +2705,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTUnsignedByteInfo.g.cs b/dotnet/src/DTDLParser/generated/DTUnsignedByteInfo.g.cs index cb4a1639..ee08850d 100644 --- a/dotnet/src/DTDLParser/generated/DTUnsignedByteInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTUnsignedByteInfo.g.cs @@ -1550,7 +1550,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -1611,7 +1617,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -1658,7 +1670,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTUnsignedIntegerInfo.g.cs b/dotnet/src/DTDLParser/generated/DTUnsignedIntegerInfo.g.cs index 0de716f5..e4035805 100644 --- a/dotnet/src/DTDLParser/generated/DTUnsignedIntegerInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTUnsignedIntegerInfo.g.cs @@ -1550,7 +1550,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -1611,7 +1617,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -1658,7 +1670,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTUnsignedLongInfo.g.cs b/dotnet/src/DTDLParser/generated/DTUnsignedLongInfo.g.cs index 9303ede6..a8cce47e 100644 --- a/dotnet/src/DTDLParser/generated/DTUnsignedLongInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTUnsignedLongInfo.g.cs @@ -1550,7 +1550,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -1611,7 +1617,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -1658,7 +1670,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTUnsignedShortInfo.g.cs b/dotnet/src/DTDLParser/generated/DTUnsignedShortInfo.g.cs index 0af27baf..9062e657 100644 --- a/dotnet/src/DTDLParser/generated/DTUnsignedShortInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTUnsignedShortInfo.g.cs @@ -1550,7 +1550,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -1611,7 +1617,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -1658,7 +1670,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/DTUuidInfo.g.cs b/dotnet/src/DTDLParser/generated/DTUuidInfo.g.cs index 973a5da5..b37407f9 100644 --- a/dotnet/src/DTDLParser/generated/DTUuidInfo.g.cs +++ b/dotnet/src/DTDLParser/generated/DTUuidInfo.g.cs @@ -1537,7 +1537,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + string newComment = ValueParser.ParseSingularStringValueCollection(aggregateContext, this.Id, "comment", prop.Values, maxLength, null, layer, parsingErrorCollection, isOptional: true); if (this.commentPropertyLayer != null) { @@ -1598,7 +1604,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 4096, + _ => null, + }; + Dictionary newDescription = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "description", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List descriptionCodes = Helpers.GetKeysWithDifferingLiteralValues(this.Description, newDescription); if (descriptionCodes.Any()) @@ -1645,7 +1657,13 @@ internal override void ParsePropertiesV4(Model model, List 512, + "onvif_1" => 512, + _ => null, + }; + Dictionary newDisplayName = ValueParser.ParseLangStringValueCollection(aggregateContext, this.Id, "displayName", prop.Values, "en", maxLength, null, layer, parsingErrorCollection); List displayNameCodes = Helpers.GetKeysWithDifferingLiteralValues(this.DisplayName, newDisplayName); if (displayNameCodes.Any()) diff --git a/dotnet/src/DTDLParser/generated/IdValidator.g.cs b/dotnet/src/DTDLParser/generated/IdValidator.g.cs index 36a4c8cb..1f78d990 100644 --- a/dotnet/src/DTDLParser/generated/IdValidator.g.cs +++ b/dotnet/src/DTDLParser/generated/IdValidator.g.cs @@ -37,6 +37,7 @@ static IdValidator() IdDefinitionMaxLengths[4] = new Dictionary { { "", 2048 }, + { "onvif_1", 512 }, }; IdDefinitionRegexPatterns[4] = new Regex(@"^dtmi:[A-Za-z](?:[A-Za-z0-9_]*[A-Za-z0-9])?(?::[A-Za-z](?:[A-Za-z0-9_]*[A-Za-z0-9])?)*(?:;[1-9][0-9]{0,8}(?:\.[1-9][0-9]{0,5})?)?$", RegexOptions.Compiled); @@ -56,6 +57,7 @@ static IdValidator() IdReferenceMaxLengths[4] = new Dictionary { { "", 2048 }, + { "onvif_1", 512 }, }; IdReferenceRegexPatterns[4] = new Regex(@"^dtmi:[A-Za-z](?:[A-Za-z0-9_]*[A-Za-z0-9])?(?::[A-Za-z](?:[A-Za-z0-9_]*[A-Za-z0-9])?)*(?:;[1-9][0-9]{0,8}(?:\.[1-9][0-9]{0,5})?)?$", RegexOptions.Compiled); diff --git a/dotnet/src/DTDLParser/generated/PartitionTypeCollection.g.cs b/dotnet/src/DTDLParser/generated/PartitionTypeCollection.g.cs index 9adde472..f5f70ff4 100644 --- a/dotnet/src/DTDLParser/generated/PartitionTypeCollection.g.cs +++ b/dotnet/src/DTDLParser/generated/PartitionTypeCollection.g.cs @@ -40,6 +40,7 @@ static PartitionTypeCollection() PartitionMaxBytes[4] = new Dictionary { { "", 1048576 }, + { "onvif_1", 1048576 }, }; } } diff --git a/dotnet/src/DTDLParser/generated/SupplementalTypeCollection.g.cs b/dotnet/src/DTDLParser/generated/SupplementalTypeCollection.g.cs index c579dc99..a314d9d2 100644 --- a/dotnet/src/DTDLParser/generated/SupplementalTypeCollection.g.cs +++ b/dotnet/src/DTDLParser/generated/SupplementalTypeCollection.g.cs @@ -38,6 +38,7 @@ static SupplementalTypeCollection() Dtmi dtdlExtensionQuantitativeTypesContextIdV1 = new Dtmi("dtmi:dtdl:extension:quantitativeTypes;1"); Dtmi dtdlExtensionQuantitativeTypesContextIdV2 = new Dtmi("dtmi:dtdl:extension:quantitativeTypes;2"); Dtmi dtdlExtensionRequirementContextIdV1 = new Dtmi("dtmi:dtdl:extension:requirement;1"); + Dtmi dtdlLimitsOnvifContextIdV1 = new Dtmi("dtmi:dtdl:limits:onvif;1"); Dtmi iotcentralContextIdV2 = new Dtmi("dtmi:iotcentral:context;2"); Dtmi adjunctTypeTypeIdEV3 = new Dtmi("dtmi:dtdl:class:AdjunctType;3"); diff --git a/dotnet/tests/ParserUnitTest/generated/DocExampleUnitTest.g.cs b/dotnet/tests/ParserUnitTest/generated/DocExampleUnitTest.g.cs index 243399bf..593ffcdf 100644 --- a/dotnet/tests/ParserUnitTest/generated/DocExampleUnitTest.g.cs +++ b/dotnet/tests/ParserUnitTest/generated/DocExampleUnitTest.g.cs @@ -77,6 +77,7 @@ public class DocExampleUnitTest [DataRow("ObjectDocExample-en-US-1-V2")] [DataRow("ObjectDocExample-en-US-1-V3")] [DataRow("ObjectDocExample-en-US-1-V4")] + [DataRow("onvifDocExample-en-US-1-V1")] [DataRow("overridingDocExample-en-US-1-V1")] [DataRow("overridingDocExample-en-US-1-V2")] [DataRow("overridingDocExample-en-US-2-V1")] diff --git a/dotnet/tests/ParserUnitTest/generated/ParserUnitTest.g.cs b/dotnet/tests/ParserUnitTest/generated/ParserUnitTest.g.cs index 5d9ab383..45dbc28a 100644 --- a/dotnet/tests/ParserUnitTest/generated/ParserUnitTest.g.cs +++ b/dotnet/tests/ParserUnitTest/generated/ParserUnitTest.g.cs @@ -39,11 +39,13 @@ public partial class ParserUnitTest [DataRow("ArrayInPropertyV2")] [DataRow("ArrayInPropertyV3")] [DataRow("ArrayInPropertyV4")] + [DataRow("ArrayMaxDeepOnvifLimitsV4")] [DataRow("ArrayMaxDeepV2")] [DataRow("ArrayMaxDeepV3")] [DataRow("ArrayMaxDeepV4")] [DataRow("ArrayNoPartialResolveV3")] [DataRow("ArrayNoPartialResolveV4")] + [DataRow("ArrayTooDeepOnvifLimitsV4")] [DataRow("ArrayTooDeepV2")] [DataRow("ArrayTooDeepV3")] [DataRow("ArrayTooDeepV4")] @@ -664,6 +666,7 @@ public void TestParser_H(string testName) [DataRow("InterfaceExtendsIdReferenceOnResolveWithNoOptionV2")] [DataRow("InterfaceExtendsIdReferenceOnResolveWithNoOptionV3")] [DataRow("InterfaceExtendsIdReferenceOnResolveWithNoOptionV4")] + [DataRow("InterfaceExtendsMaxLongChainOnvifLimitsV4")] [DataRow("InterfaceExtendsMaxLongChainV2")] [DataRow("InterfaceExtendsMaxLongChainV3")] [DataRow("InterfaceExtendsMaxLongChainV4")] @@ -682,6 +685,7 @@ public void TestParser_H(string testName) [DataRow("InterfaceExtendsSeparateContextsV2")] [DataRow("InterfaceExtendsSeparateContextsV3")] [DataRow("InterfaceExtendsSeparateContextsV4")] + [DataRow("InterfaceExtendsTooLongChainOnvifLimitsV4")] [DataRow("InterfaceExtendsTooLongChainV2")] [DataRow("InterfaceExtendsTooLongChainV3")] [DataRow("InterfaceExtendsTooLongChainV4")] @@ -1520,9 +1524,11 @@ public void TestParser_L(string testName) [DataRow("MapMapValueSchemaSelfV2")] [DataRow("MapMapValueSchemaSelfV3")] [DataRow("MapMapValueSchemaSelfV4")] + [DataRow("MapMaxDeepOnvifLimitsV4")] [DataRow("MapMaxDeepV2")] [DataRow("MapMaxDeepV3")] [DataRow("MapMaxDeepV4")] + [DataRow("MapTooDeepOnvifLimitsV4")] [DataRow("MapTooDeepV2")] [DataRow("MapTooDeepV3")] [DataRow("MapTooDeepV4")] @@ -1639,6 +1645,7 @@ public void TestParser_N(string testName) [DataRow("ObjectInferredFieldWithSemanticTypeQuantitativeV3")] [DataRow("ObjectInferredFieldWithSemanticTypeQuantitativeV4")] [DataRow("ObjectInferredFieldWithSemanticTypeStandardV2")] + [DataRow("ObjectMaxDeepOnvifLimitsV4")] [DataRow("ObjectMaxDeepV2")] [DataRow("ObjectMaxDeepV3")] [DataRow("ObjectMaxDeepV4")] @@ -1647,6 +1654,7 @@ public void TestParser_N(string testName) [DataRow("ObjectNoFieldsV3")] [DataRow("ObjectNoFieldsV4")] [DataRow("ObjectTooBigV2")] + [DataRow("ObjectTooDeepOnvifLimitsV4")] [DataRow("ObjectTooDeepV2")] [DataRow("ObjectTooDeepV3")] [DataRow("ObjectTooDeepV4")] @@ -2037,6 +2045,14 @@ public void TestParser_S(string testName) [DataRow("TelemetryAtTopLevelV2")] [DataRow("TelemetryAtTopLevelV3")] [DataRow("TelemetryAtTopLevelV4")] + [DataRow("TelemetryDescriptionMaxLongOnvifLimitsV4")] + [DataRow("TelemetryDescriptionMaxLongV2")] + [DataRow("TelemetryDescriptionMaxLongV3")] + [DataRow("TelemetryDescriptionMaxLongV4")] + [DataRow("TelemetryDescriptionTooLongOnvifLimitsV4")] + [DataRow("TelemetryDescriptionTooLongV2")] + [DataRow("TelemetryDescriptionTooLongV3")] + [DataRow("TelemetryDescriptionTooLongV4")] [DataRow("TelemetryDisplayNameArrayElementCodeDuplicateV2")] [DataRow("TelemetryDisplayNameArrayElementCodeDuplicateV3")] [DataRow("TelemetryDisplayNameArrayElementCodeDuplicateV4")] @@ -2085,6 +2101,7 @@ public void TestParser_S(string testName) [DataRow("TelemetryDisplayNameArrayElementValueIntegerV2")] [DataRow("TelemetryDisplayNameArrayElementValueIntegerV3")] [DataRow("TelemetryDisplayNameArrayElementValueIntegerV4")] + [DataRow("TelemetryDisplayNameArrayElementValueTooLongOnvifLimitsV4")] [DataRow("TelemetryDisplayNameArrayElementValueTooLongV2")] [DataRow("TelemetryDisplayNameArrayElementValueTooLongV3")] [DataRow("TelemetryDisplayNameArrayElementValueTooLongV4")] @@ -2127,9 +2144,11 @@ public void TestParser_S(string testName) [DataRow("TelemetryDisplayNameLanguageMapValuePropV2")] [DataRow("TelemetryDisplayNameLanguageMapValuePropV3")] [DataRow("TelemetryDisplayNameLanguageMapValuePropV4")] + [DataRow("TelemetryDisplayNameLanguageMapValueTooLongOnvifLimitsV4")] [DataRow("TelemetryDisplayNameLanguageMapValueTooLongV2")] [DataRow("TelemetryDisplayNameLanguageMapValueTooLongV3")] [DataRow("TelemetryDisplayNameLanguageMapValueTooLongV4")] + [DataRow("TelemetryDisplayNameStringTooLongOnvifLimitsV4")] [DataRow("TelemetryDisplayNameStringTooLongV2")] [DataRow("TelemetryDisplayNameStringTooLongV3")] [DataRow("TelemetryDisplayNameStringTooLongV4")] @@ -2187,6 +2206,7 @@ public void TestParser_S(string testName) [DataRow("TelemetryNameInvalidV2")] [DataRow("TelemetryNameInvalidV3")] [DataRow("TelemetryNameInvalidV4")] + [DataRow("TelemetryNameMaxLongOnvifLimitsV4")] [DataRow("TelemetryNameMaxLongV2")] [DataRow("TelemetryNameMaxLongV3")] [DataRow("TelemetryNameMaxLongV4")] @@ -2205,6 +2225,7 @@ public void TestParser_S(string testName) [DataRow("TelemetryNameStringTypedValueObjectV2")] [DataRow("TelemetryNameStringTypedValueObjectV3")] [DataRow("TelemetryNameStringTypedValueObjectV4")] + [DataRow("TelemetryNameTooLongOnvifLimitsV4")] [DataRow("TelemetryNameTooLongV2")] [DataRow("TelemetryNameTooLongV3")] [DataRow("TelemetryNameTooLongV4")] @@ -2243,12 +2264,20 @@ public void TestParser_S(string testName) [DataRow("TelemetrySchemaIntegerV4")] [DataRow("TelemetryWithDisallowedContextFragmentV2")] [DataRow("TelemetryWithDisallowedContextFragmentV3")] + [DataRow("TelemetryWithFeatureContextAfterLimitlessV4")] [DataRow("TelemetryWithInvalidFeatureContextFragmentV4")] [DataRow("TelemetryWithInvalidFirstCoreContextFragmentV4")] + [DataRow("TelemetryWithInvalidLimitContextFragmentV4")] [DataRow("TelemetryWithInvalidSecondCoreContextFragmentV4")] [DataRow("TelemetryWithLeadingCoreLimitContextV4")] + [DataRow("TelemetryWithLeadingOnvifLimitContextV4")] [DataRow("TelemetryWithLimitlessContextAtEndOfBlockV4")] [DataRow("TelemetryWithNonFollowingCoreLimitContextV4")] + [DataRow("TelemetryWithNonFollowingOnvifLimitContextV4")] + [DataRow("TelemetryWithOnvifAndExtensionContextsV4")] + [DataRow("TelemetryWithOnvifLimitsAcceptableVersionV4")] + [DataRow("TelemetryWithOnvifLimitsUnacceptableV4")] + [DataRow("TelemetryWithOnvifLimitsUnacceptableVersionV4")] [DataRow("TelemetryWithRedundantlyVerboseContextsV4")] [DataRow("TelemetryWithRepeatedLimitlessContextV4")] [DataRow("TelemetryWithSemanticTypeAbstractV2")] diff --git a/dtdl/dtdl.json b/dtdl/dtdl.json index 89e7f5b3..eaa93ba3 100644 --- a/dtdl/dtdl.json +++ b/dtdl/dtdl.json @@ -12,6 +12,7 @@ "requirement": [ "1" ] }, "limitExtensions": { + "onvif": [ "1" ] }, "documentLanguages": [ "en-US" diff --git a/dtdl/dtdl_digest.json b/dtdl/dtdl_digest.json index 83cc3932..927ed1f2 100644 --- a/dtdl/dtdl_digest.json +++ b/dtdl/dtdl_digest.json @@ -1432,6 +1432,7 @@ "dtmi:dtdl:extension:requirement;1": { "Required": "dtmi:dtdl:extension:requirement:v1:Required" }, + "dtmi:dtdl:limits:onvif;1": {}, "dtmi:iotcentral:context;2": { "AccelerationVector": "dtmi:iotcentral:class:AccelerationVector;2", "Event": "dtmi:iotcentral:class:Event;2", @@ -1787,7 +1788,8 @@ ] }, "maxDepth": { - "": 8 + "": 8, + "onvif_1": 24 }, "narrow": false, "properties": [ @@ -1802,7 +1804,8 @@ "dtdlVersion": 4, "entailments": {}, "maxDepth": { - "": 8 + "": 8, + "onvif_1": 24 }, "narrow": false, "properties": [ @@ -1837,7 +1840,8 @@ ] }, "maxDepth": { - "": 8 + "": 8, + "onvif_1": 24 }, "narrow": false, "properties": [ @@ -1874,10 +1878,12 @@ "contents" ], "maxCount": { - "": 1024 + "": 1024, + "onvif_1": 1024 }, "maxDepth": { - "": 12 + "": 12, + "onvif_1": 12 }, "narrow": true, "properties": [ @@ -1891,7 +1897,8 @@ "dtdlVersion": 4, "entailments": {}, "maxCount": { - "": 100000 + "": 100000, + "onvif_1": 100000 }, "narrow": true, "properties": [ @@ -1920,7 +1927,8 @@ ] }, "maxDepth": { - "": 8 + "": 8, + "onvif_1": 24 }, "narrow": false, "properties": [ @@ -1939,7 +1947,8 @@ ] }, "maxDepth": { - "": 8 + "": 8, + "onvif_1": 24 }, "narrow": false, "properties": [ @@ -13879,6 +13888,11 @@ "en-us": "Selectively designate one or more fields in an Object as required." } }, + "dtmi:dtdl:limits:onvif;1": { + "description": { + "en-us": "Increased limits that support translating ONVIF WSDL definitions into DTDL." + } + }, "dtmi:iotcentral:context;2": { "description": { "en-us": "A set of semantic types and schema types used by IoT Central." @@ -14628,7 +14642,8 @@ }, "4": { "maxLength": { - "": 2048 + "": 2048, + "onvif_1": 512 }, "pattern": "^dtmi:[A-Za-z](?:[A-Za-z0-9_]*[A-Za-z0-9])?(?::[A-Za-z](?:[A-Za-z0-9_]*[A-Za-z0-9])?)*(?:;[1-9][0-9]{0,8}(?:\\.[1-9][0-9]{0,5})?)?$" }, @@ -14645,7 +14660,8 @@ }, "4": { "maxLength": { - "": 128 + "": 128, + "onvif_1": 256 } } } @@ -14665,13 +14681,19 @@ }, "4": { "maxLength": { - "": 2048 + "": 2048, + "onvif_1": 512 }, "pattern": "^dtmi:[A-Za-z](?:[A-Za-z0-9_]*[A-Za-z0-9])?(?::[A-Za-z](?:[A-Za-z0-9_]*[A-Za-z0-9])?)*(?:;[1-9][0-9]{0,8}(?:\\.[1-9][0-9]{0,5})?)?$" } }, "layeringSupported": false, - "limitContexts": {}, + "limitContexts": { + "dtmi:dtdl:limits:onvif;1": { + "dtdlVersion": 4, + "spec": "onvif_1" + } + }, "materialClasses": { "Array": { "abstract": false, @@ -14826,7 +14848,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -14877,7 +14900,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -14928,7 +14952,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -15229,7 +15254,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -15280,7 +15306,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -15331,7 +15358,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -15485,7 +15513,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -15512,7 +15541,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -15539,7 +15569,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -15671,7 +15702,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -15698,7 +15730,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -15725,7 +15758,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -15952,7 +15986,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -16003,7 +16038,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -16054,7 +16090,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -16407,7 +16444,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -16458,7 +16496,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -16509,7 +16548,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -16800,7 +16840,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -16839,7 +16880,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -16878,7 +16920,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -17131,7 +17174,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -17170,7 +17214,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -17209,7 +17254,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -17536,7 +17582,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -17587,7 +17634,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -17638,7 +17686,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -18159,7 +18208,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -18210,7 +18260,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -18261,7 +18312,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -18422,7 +18474,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -18473,7 +18526,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -18524,7 +18578,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -18839,7 +18894,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -18890,7 +18946,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -18941,7 +18998,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -19269,7 +19327,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -19320,7 +19379,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -19371,7 +19431,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -19631,7 +19692,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -19682,7 +19744,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -19733,7 +19796,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -19889,7 +19953,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -19916,7 +19981,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -19943,7 +20009,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -20176,7 +20243,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -20227,7 +20295,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -20278,7 +20347,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -20538,7 +20608,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -20589,7 +20660,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -20640,7 +20712,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -21611,7 +21684,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -21662,7 +21736,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -21713,7 +21788,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -21917,7 +21993,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -21968,7 +22045,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -22019,7 +22097,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -22358,7 +22437,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -22409,7 +22489,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -22460,7 +22541,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -22795,7 +22877,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -22846,7 +22929,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -22897,7 +22981,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -23287,7 +23372,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -23338,7 +23424,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -23389,7 +23476,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -23646,7 +23734,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -23697,7 +23786,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -23748,7 +23838,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -23922,7 +24013,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -24056,7 +24148,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -24107,7 +24200,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -24351,7 +24445,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -24390,7 +24485,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -24429,7 +24525,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -24663,7 +24760,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -24714,7 +24812,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -24765,7 +24864,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -24988,7 +25088,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -25039,7 +25140,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -25090,7 +25192,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -25366,7 +25469,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -25417,7 +25521,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -25468,7 +25573,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -25807,7 +25913,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -25858,7 +25965,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -25909,7 +26017,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -26238,7 +26347,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -26289,7 +26399,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -26340,7 +26451,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -26543,7 +26655,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -26582,7 +26695,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -26621,7 +26735,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -27023,7 +27138,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -27074,7 +27190,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -27125,7 +27242,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -27674,7 +27792,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -27725,7 +27844,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -27776,7 +27896,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -28355,7 +28476,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -28406,7 +28528,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -28457,7 +28580,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -28618,7 +28742,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -28669,7 +28794,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -28720,7 +28846,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -29077,7 +29204,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -29128,7 +29256,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -29179,7 +29308,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -30386,7 +30516,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -30437,7 +30568,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -30488,7 +30620,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -30656,7 +30789,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -30707,7 +30841,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -30758,7 +30893,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -31026,7 +31162,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -31053,7 +31190,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -31080,7 +31218,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -31282,7 +31421,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -31333,7 +31473,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -31384,7 +31525,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -31557,7 +31699,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -31608,7 +31751,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -31659,7 +31803,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -32100,7 +32245,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -32151,7 +32297,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -32202,7 +32349,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -32450,7 +32598,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -32501,7 +32650,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -32552,7 +32702,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -32726,7 +32877,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -32777,7 +32929,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -32828,7 +32981,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33030,7 +33184,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33081,7 +33236,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -33132,7 +33288,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33341,7 +33498,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33368,7 +33526,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -33395,7 +33554,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33527,7 +33687,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33554,7 +33715,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -33581,7 +33743,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33713,7 +33876,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33740,7 +33904,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -33767,7 +33932,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33899,7 +34065,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -33926,7 +34093,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -33953,7 +34121,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -34084,7 +34253,8 @@ "idRequired": false, "maxCount": 1, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -34111,7 +34281,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 4096 }, "typeRequired": true, "uniqueAmong": [] @@ -34138,7 +34309,8 @@ "hidden": false, "idRequired": false, "maxLength": { - "": 512 + "": 512, + "onvif_1": 512 }, "typeRequired": true, "uniqueAmong": [] @@ -34196,7 +34368,8 @@ }, "4": { "maxBytes": { - "": 1048576 + "": 1048576, + "onvif_1": 1048576 } } }, diff --git a/test-cases/doc-examples/UnspecifiedDocExample-en-US-10-V4.json b/test-cases/doc-examples/UnspecifiedDocExample-en-US-10-V4.json index 0b84deda..aa4200b0 100644 --- a/test-cases/doc-examples/UnspecifiedDocExample-en-US-10-V4.json +++ b/test-cases/doc-examples/UnspecifiedDocExample-en-US-10-V4.json @@ -1,11 +1,14 @@ { - "valid": false, + "valid": true, "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], "input": [ { "@context": [ "dtmi:dtdl:context;4#limitless", - "dtmi:dtdl:limits:hypothetical;1" + "dtmi:dtdl:limits:onvif;1" ], "@id": "dtmi:com:example:Sampler;1", "@type": "Interface", @@ -22,13 +25,5 @@ } ] } - ], - "expect": { - "parsingErrors": [ - { - "ValidationID": "dtmi:dtdl:parsingError:missingLimitContext", - "PrimaryID": null - } - ] - } + ] } diff --git a/test-cases/doc-examples/onvifDocExample-en-US-1-V1.json b/test-cases/doc-examples/onvifDocExample-en-US-1-V1.json new file mode 100644 index 00000000..84ab90e1 --- /dev/null +++ b/test-cases/doc-examples/onvifDocExample-en-US-1-V1.json @@ -0,0 +1,118 @@ +{ + "valid": true, + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:onvif:media;1", + "@type": "Interface", + "schemas": [ + { + "@id": "dtmi:onvif:media:GetProfilesResponse;1", + "@type": "Object", + "fields": [ + { + "name": "Profiles", + "description": "List of profiles", + "schema": { + "@type": "Array", + "elementSchema": "dtmi:onvif:media:Profile;1" + } + } + ] + }, + { + "@id": "dtmi:onvif:media:Profile;1", + "@type": "Object", + "fields": [ + { + "name": "MetadataConfiguration", + "description": "Optional configuration of the metadata stream.", + "schema": "dtmi:onvif:media:MetadataConfiguration;1" + } + ] + }, + { + "@id": "dtmi:onvif:media:MetadataConfiguration;1", + "@type": "Object", + "fields": [ + { + "name": "AnalyticsEngineConfiguration", + "schema": "dtmi:onvif:media:AnalyticsEngineConfiguration;1" + } + ] + }, + { + "@id": "dtmi:onvif:media:AnalyticsEngineConfiguration;1", + "@type": "Object", + "fields": [ + { + "name": "AnalyticsModule", + "schema": { + "@type": "Array", + "elementSchema": "dtmi:onvif:media:Config;1" + } + } + ] + }, + { + "@id": "dtmi:onvif:media:Config;1", + "@type": "Object", + "fields": [ + { + "name": "Parameters", + "description": "List of configuration parameters as defined in the corresponding description.", + "schema": "dtmi:onvif:media:ItemList;1" + } + ] + }, + { + "@id": "dtmi:onvif:media:ItemList;1", + "@type": "Object", + "fields": [ + { + "name": "SimpleItem", + "description": "Value name pair as defined by the corresponding description.", + "schema": { + "@type": "Array", + "elementSchema": "dtmi:onvif:media:SimpleItem;1" + } + } + ] + }, + { + "@id": "dtmi:onvif:media:SimpleItem;1", + "@type": "Object", + "fields": [ + { + "name": "Name", + "description": "Item name.", + "schema": "string" + }, + { + "name": "Value", + "description": "Item value. The type is defined in the corresponding description.", + "schema": "string" + } + ] + } + ], + "contents": [ + { + "@type": "Command", + "name": "GetProfiles", + "response": { + "name": "GetProfilesResponse", + "schema": "dtmi:onvif:media:GetProfilesResponse;1" + } + } + ] + } + ] +} diff --git a/test-cases/generated/ArrayMaxDeepOnvifLimitsV4.json b/test-cases/generated/ArrayMaxDeepOnvifLimitsV4.json new file mode 100644 index 00000000..f1c26d4e --- /dev/null +++ b/test-cases/generated/ArrayMaxDeepOnvifLimitsV4.json @@ -0,0 +1,123 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": true, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "schemas": [ + { + "@id": "dtmi:test:deepArray1;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray2;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray3;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray4;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray5;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray6;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray7;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray8;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray9;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray10;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray11;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray12;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray13;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray14;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray15;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray16;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray17;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray18;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray19;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray20;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray21;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray22;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray23;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray24;1", + "@type": "Array", + "elementSchema": "double" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ] + } + ], + "expect": { + "elementsCount": 25 + } +} diff --git a/test-cases/generated/ArrayTooDeepOnvifLimitsV4.json b/test-cases/generated/ArrayTooDeepOnvifLimitsV4.json new file mode 100644 index 00000000..1bfc4614 --- /dev/null +++ b/test-cases/generated/ArrayTooDeepOnvifLimitsV4.json @@ -0,0 +1,141 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "schemas": [ + { + "@id": "dtmi:test:deepArray1;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray2;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray3;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray4;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray5;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray6;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray7;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray8;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray9;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray10;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray11;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray12;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray13;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray14;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray15;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray16;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray17;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray18;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray19;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray20;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray21;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray22;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray23;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray24;1", + "@type": "Array", + "elementSchema": { + "@id": "dtmi:test:deepArray25;1", + "@type": "Array", + "elementSchema": "double" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:excessiveDepthWide", + "PrimaryID": "dtmi:test:deepArray1;1", + "SecondaryID": "dtmi:test:deepArray25;1", + "Property": null, + "Value": null, + "PrimaryIndex": 0, + "PrimaryStart": 9, + "PrimaryEnd": 109, + "SecondaryIndex": 0, + "SecondaryStart": 81, + "SecondaryEnd": 85 + } + ] + } +} diff --git a/test-cases/generated/InterfaceExtendsMaxLongChainOnvifLimitsV4.json b/test-cases/generated/InterfaceExtendsMaxLongChainOnvifLimitsV4.json new file mode 100644 index 00000000..fb39d538 --- /dev/null +++ b/test-cases/generated/InterfaceExtendsMaxLongChainOnvifLimitsV4.json @@ -0,0 +1,162 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": true, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:interface1;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop1", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface2;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop2", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface3;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop3", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface4;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop4", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface5;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop5", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface6;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop6", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface7;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop7", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface8;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop8", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface9;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop9", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface10;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop10", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface11;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop11", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface12;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop12", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface0;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop0", + "schema": "double" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ], + "expect": { + "elements": [ + { + "id": "dtmi:test:interface1;1", + "type": "Interface", + "properties": { + "extends": [ + "dtmi:test:interface2;1" + ], + "contents": { + "prop0": "dtmi:test:interface0:_contents:__prop0;1", + "prop1": "dtmi:test:interface1:_contents:__prop1;1", + "prop2": "dtmi:test:interface2:_contents:__prop2;1", + "prop3": "dtmi:test:interface3:_contents:__prop3;1", + "prop4": "dtmi:test:interface4:_contents:__prop4;1", + "prop5": "dtmi:test:interface5:_contents:__prop5;1", + "prop6": "dtmi:test:interface6:_contents:__prop6;1", + "prop7": "dtmi:test:interface7:_contents:__prop7;1", + "prop8": "dtmi:test:interface8:_contents:__prop8;1", + "prop9": "dtmi:test:interface9:_contents:__prop9;1", + "prop10": "dtmi:test:interface10:_contents:__prop10;1", + "prop11": "dtmi:test:interface11:_contents:__prop11;1", + "prop12": "dtmi:test:interface12:_contents:__prop12;1" + } + } + } + ] + } +} diff --git a/test-cases/generated/InterfaceExtendsTooLongChainOnvifLimitsV4.json b/test-cases/generated/InterfaceExtendsTooLongChainOnvifLimitsV4.json new file mode 100644 index 00000000..a4e00c6a --- /dev/null +++ b/test-cases/generated/InterfaceExtendsTooLongChainOnvifLimitsV4.json @@ -0,0 +1,160 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:interface1;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop1", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface2;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop2", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface3;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop3", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface4;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop4", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface5;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop5", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface6;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop6", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface7;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop7", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface8;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop8", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface9;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop9", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface10;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop10", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface11;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop11", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface12;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop12", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface13;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop13", + "schema": "double" + }, + "extends": { + "@id": "dtmi:test:interface0;1", + "@type": "Interface", + "contents": { + "@type": "Property", + "name": "prop0", + "schema": "double" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:excessiveDepthNarrow", + "PrimaryID": "dtmi:test:interface1;1", + "SecondaryID": "dtmi:test:interface0;1", + "Property": "'extends'", + "Value": null, + "PrimaryIndex": 0, + "PrimaryStart": 1, + "PrimaryEnd": 130, + "SecondaryIndex": 0, + "SecondaryStart": 109, + "SecondaryEnd": 117 + } + ] + } +} diff --git a/test-cases/generated/MapMaxDeepOnvifLimitsV4.json b/test-cases/generated/MapMaxDeepOnvifLimitsV4.json new file mode 100644 index 00000000..f690e6bd --- /dev/null +++ b/test-cases/generated/MapMaxDeepOnvifLimitsV4.json @@ -0,0 +1,291 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": true, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "schemas": [ + { + "@id": "dtmi:test:deepMap1;1", + "@type": "Map", + "mapKey": { + "name": "MapKey1", + "schema": "string" + }, + "mapValue": { + "name": "MapValue1", + "schema": { + "@id": "dtmi:test:deepMap2;1", + "@type": "Map", + "mapKey": { + "name": "MapKey2", + "schema": "string" + }, + "mapValue": { + "name": "MapValue2", + "schema": { + "@id": "dtmi:test:deepMap3;1", + "@type": "Map", + "mapKey": { + "name": "MapKey3", + "schema": "string" + }, + "mapValue": { + "name": "MapValue3", + "schema": { + "@id": "dtmi:test:deepMap4;1", + "@type": "Map", + "mapKey": { + "name": "MapKey4", + "schema": "string" + }, + "mapValue": { + "name": "MapValue4", + "schema": { + "@id": "dtmi:test:deepMap5;1", + "@type": "Map", + "mapKey": { + "name": "MapKey5", + "schema": "string" + }, + "mapValue": { + "name": "MapValue5", + "schema": { + "@id": "dtmi:test:deepMap6;1", + "@type": "Map", + "mapKey": { + "name": "MapKey6", + "schema": "string" + }, + "mapValue": { + "name": "MapValue6", + "schema": { + "@id": "dtmi:test:deepMap7;1", + "@type": "Map", + "mapKey": { + "name": "MapKey7", + "schema": "string" + }, + "mapValue": { + "name": "MapValue7", + "schema": { + "@id": "dtmi:test:deepMap8;1", + "@type": "Map", + "mapKey": { + "name": "MapKey8", + "schema": "string" + }, + "mapValue": { + "name": "MapValue8", + "schema": { + "@id": "dtmi:test:deepMap9;1", + "@type": "Map", + "mapKey": { + "name": "MapKey9", + "schema": "string" + }, + "mapValue": { + "name": "MapValue9", + "schema": { + "@id": "dtmi:test:deepMap10;1", + "@type": "Map", + "mapKey": { + "name": "MapKey10", + "schema": "string" + }, + "mapValue": { + "name": "MapValue10", + "schema": { + "@id": "dtmi:test:deepMap11;1", + "@type": "Map", + "mapKey": { + "name": "MapKey11", + "schema": "string" + }, + "mapValue": { + "name": "MapValue11", + "schema": { + "@id": "dtmi:test:deepMap12;1", + "@type": "Map", + "mapKey": { + "name": "MapKey12", + "schema": "string" + }, + "mapValue": { + "name": "MapValue12", + "schema": { + "@id": "dtmi:test:deepMap13;1", + "@type": "Map", + "mapKey": { + "name": "MapKey13", + "schema": "string" + }, + "mapValue": { + "name": "MapValue13", + "schema": { + "@id": "dtmi:test:deepMap14;1", + "@type": "Map", + "mapKey": { + "name": "MapKey14", + "schema": "string" + }, + "mapValue": { + "name": "MapValue14", + "schema": { + "@id": "dtmi:test:deepMap15;1", + "@type": "Map", + "mapKey": { + "name": "MapKey15", + "schema": "string" + }, + "mapValue": { + "name": "MapValue15", + "schema": { + "@id": "dtmi:test:deepMap16;1", + "@type": "Map", + "mapKey": { + "name": "MapKey16", + "schema": "string" + }, + "mapValue": { + "name": "MapValue16", + "schema": { + "@id": "dtmi:test:deepMap17;1", + "@type": "Map", + "mapKey": { + "name": "MapKey17", + "schema": "string" + }, + "mapValue": { + "name": "MapValue17", + "schema": { + "@id": "dtmi:test:deepMap18;1", + "@type": "Map", + "mapKey": { + "name": "MapKey18", + "schema": "string" + }, + "mapValue": { + "name": "MapValue18", + "schema": { + "@id": "dtmi:test:deepMap19;1", + "@type": "Map", + "mapKey": { + "name": "MapKey19", + "schema": "string" + }, + "mapValue": { + "name": "MapValue19", + "schema": { + "@id": "dtmi:test:deepMap20;1", + "@type": "Map", + "mapKey": { + "name": "MapKey20", + "schema": "string" + }, + "mapValue": { + "name": "MapValue20", + "schema": { + "@id": "dtmi:test:deepMap21;1", + "@type": "Map", + "mapKey": { + "name": "MapKey21", + "schema": "string" + }, + "mapValue": { + "name": "MapValue21", + "schema": { + "@id": "dtmi:test:deepMap22;1", + "@type": "Map", + "mapKey": { + "name": "MapKey22", + "schema": "string" + }, + "mapValue": { + "name": "MapValue22", + "schema": { + "@id": "dtmi:test:deepMap23;1", + "@type": "Map", + "mapKey": { + "name": "MapKey23", + "schema": "string" + }, + "mapValue": { + "name": "MapValue23", + "schema": { + "@id": "dtmi:test:deepMap24;1", + "@type": "Map", + "mapKey": { + "name": "MapKey24", + "schema": "string" + }, + "mapValue": { + "name": "MapValue24", + "schema": "double" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ] + } + ], + "expect": { + "elementsCount": 26 + } +} diff --git a/test-cases/generated/MapTooDeepOnvifLimitsV4.json b/test-cases/generated/MapTooDeepOnvifLimitsV4.json new file mode 100644 index 00000000..77ed65f3 --- /dev/null +++ b/test-cases/generated/MapTooDeepOnvifLimitsV4.json @@ -0,0 +1,316 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "schemas": [ + { + "@id": "dtmi:test:deepMap1;1", + "@type": "Map", + "mapKey": { + "name": "MapKey1", + "schema": "string" + }, + "mapValue": { + "name": "MapValue1", + "schema": { + "@id": "dtmi:test:deepMap2;1", + "@type": "Map", + "mapKey": { + "name": "MapKey2", + "schema": "string" + }, + "mapValue": { + "name": "MapValue2", + "schema": { + "@id": "dtmi:test:deepMap3;1", + "@type": "Map", + "mapKey": { + "name": "MapKey3", + "schema": "string" + }, + "mapValue": { + "name": "MapValue3", + "schema": { + "@id": "dtmi:test:deepMap4;1", + "@type": "Map", + "mapKey": { + "name": "MapKey4", + "schema": "string" + }, + "mapValue": { + "name": "MapValue4", + "schema": { + "@id": "dtmi:test:deepMap5;1", + "@type": "Map", + "mapKey": { + "name": "MapKey5", + "schema": "string" + }, + "mapValue": { + "name": "MapValue5", + "schema": { + "@id": "dtmi:test:deepMap6;1", + "@type": "Map", + "mapKey": { + "name": "MapKey6", + "schema": "string" + }, + "mapValue": { + "name": "MapValue6", + "schema": { + "@id": "dtmi:test:deepMap7;1", + "@type": "Map", + "mapKey": { + "name": "MapKey7", + "schema": "string" + }, + "mapValue": { + "name": "MapValue7", + "schema": { + "@id": "dtmi:test:deepMap8;1", + "@type": "Map", + "mapKey": { + "name": "MapKey8", + "schema": "string" + }, + "mapValue": { + "name": "MapValue8", + "schema": { + "@id": "dtmi:test:deepMap9;1", + "@type": "Map", + "mapKey": { + "name": "MapKey9", + "schema": "string" + }, + "mapValue": { + "name": "MapValue9", + "schema": { + "@id": "dtmi:test:deepMap10;1", + "@type": "Map", + "mapKey": { + "name": "MapKey10", + "schema": "string" + }, + "mapValue": { + "name": "MapValue10", + "schema": { + "@id": "dtmi:test:deepMap11;1", + "@type": "Map", + "mapKey": { + "name": "MapKey11", + "schema": "string" + }, + "mapValue": { + "name": "MapValue11", + "schema": { + "@id": "dtmi:test:deepMap12;1", + "@type": "Map", + "mapKey": { + "name": "MapKey12", + "schema": "string" + }, + "mapValue": { + "name": "MapValue12", + "schema": { + "@id": "dtmi:test:deepMap13;1", + "@type": "Map", + "mapKey": { + "name": "MapKey13", + "schema": "string" + }, + "mapValue": { + "name": "MapValue13", + "schema": { + "@id": "dtmi:test:deepMap14;1", + "@type": "Map", + "mapKey": { + "name": "MapKey14", + "schema": "string" + }, + "mapValue": { + "name": "MapValue14", + "schema": { + "@id": "dtmi:test:deepMap15;1", + "@type": "Map", + "mapKey": { + "name": "MapKey15", + "schema": "string" + }, + "mapValue": { + "name": "MapValue15", + "schema": { + "@id": "dtmi:test:deepMap16;1", + "@type": "Map", + "mapKey": { + "name": "MapKey16", + "schema": "string" + }, + "mapValue": { + "name": "MapValue16", + "schema": { + "@id": "dtmi:test:deepMap17;1", + "@type": "Map", + "mapKey": { + "name": "MapKey17", + "schema": "string" + }, + "mapValue": { + "name": "MapValue17", + "schema": { + "@id": "dtmi:test:deepMap18;1", + "@type": "Map", + "mapKey": { + "name": "MapKey18", + "schema": "string" + }, + "mapValue": { + "name": "MapValue18", + "schema": { + "@id": "dtmi:test:deepMap19;1", + "@type": "Map", + "mapKey": { + "name": "MapKey19", + "schema": "string" + }, + "mapValue": { + "name": "MapValue19", + "schema": { + "@id": "dtmi:test:deepMap20;1", + "@type": "Map", + "mapKey": { + "name": "MapKey20", + "schema": "string" + }, + "mapValue": { + "name": "MapValue20", + "schema": { + "@id": "dtmi:test:deepMap21;1", + "@type": "Map", + "mapKey": { + "name": "MapKey21", + "schema": "string" + }, + "mapValue": { + "name": "MapValue21", + "schema": { + "@id": "dtmi:test:deepMap22;1", + "@type": "Map", + "mapKey": { + "name": "MapKey22", + "schema": "string" + }, + "mapValue": { + "name": "MapValue22", + "schema": { + "@id": "dtmi:test:deepMap23;1", + "@type": "Map", + "mapKey": { + "name": "MapKey23", + "schema": "string" + }, + "mapValue": { + "name": "MapValue23", + "schema": { + "@id": "dtmi:test:deepMap24;1", + "@type": "Map", + "mapKey": { + "name": "MapKey24", + "schema": "string" + }, + "mapValue": { + "name": "MapValue24", + "schema": { + "@id": "dtmi:test:deepMap25;1", + "@type": "Map", + "mapKey": { + "name": "MapKey25", + "schema": "string" + }, + "mapValue": { + "name": "MapValue25", + "schema": "double" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:excessiveDepthWide", + "PrimaryID": "dtmi:test:deepMap1;1", + "SecondaryID": "dtmi:test:deepMap25:_mapKey;1", + "Property": null, + "Value": null, + "PrimaryIndex": 0, + "PrimaryStart": 9, + "PrimaryEnd": 284, + "SecondaryIndex": 0, + "SecondaryStart": 228, + "SecondaryEnd": 231 + } + ] + } +} diff --git a/test-cases/generated/ObjectMaxDeepOnvifLimitsV4.json b/test-cases/generated/ObjectMaxDeepOnvifLimitsV4.json new file mode 100644 index 00000000..480adee3 --- /dev/null +++ b/test-cases/generated/ObjectMaxDeepOnvifLimitsV4.json @@ -0,0 +1,197 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": true, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "schemas": [ + { + "@id": "dtmi:test:deepObject1;1", + "@type": "Object", + "fields": [ + { + "name": "Field1", + "schema": { + "@id": "dtmi:test:deepObject2;1", + "@type": "Object", + "fields": { + "name": "Field2", + "schema": { + "@id": "dtmi:test:deepObject3;1", + "@type": "Object", + "fields": { + "name": "Field3", + "schema": { + "@id": "dtmi:test:deepObject4;1", + "@type": "Object", + "fields": { + "name": "Field4", + "schema": { + "@id": "dtmi:test:deepObject5;1", + "@type": "Object", + "fields": { + "name": "Field5", + "schema": { + "@id": "dtmi:test:deepObject6;1", + "@type": "Object", + "fields": { + "name": "Field6", + "schema": { + "@id": "dtmi:test:deepObject7;1", + "@type": "Object", + "fields": { + "name": "Field7", + "schema": { + "@id": "dtmi:test:deepObject8;1", + "@type": "Object", + "fields": { + "name": "Field8", + "schema": { + "@id": "dtmi:test:deepObject9;1", + "@type": "Object", + "fields": { + "name": "Field9", + "schema": { + "@id": "dtmi:test:deepObject10;1", + "@type": "Object", + "fields": { + "name": "Field10", + "schema": { + "@id": "dtmi:test:deepObject11;1", + "@type": "Object", + "fields": { + "name": "Field11", + "schema": { + "@id": "dtmi:test:deepObject12;1", + "@type": "Object", + "fields": { + "name": "Field12", + "schema": { + "@id": "dtmi:test:deepObject13;1", + "@type": "Object", + "fields": { + "name": "Field13", + "schema": { + "@id": "dtmi:test:deepObject14;1", + "@type": "Object", + "fields": { + "name": "Field14", + "schema": { + "@id": "dtmi:test:deepObject15;1", + "@type": "Object", + "fields": { + "name": "Field15", + "schema": { + "@id": "dtmi:test:deepObject16;1", + "@type": "Object", + "fields": { + "name": "Field16", + "schema": { + "@id": "dtmi:test:deepObject17;1", + "@type": "Object", + "fields": { + "name": "Field17", + "schema": { + "@id": "dtmi:test:deepObject18;1", + "@type": "Object", + "fields": { + "name": "Field18", + "schema": { + "@id": "dtmi:test:deepObject19;1", + "@type": "Object", + "fields": { + "name": "Field19", + "schema": { + "@id": "dtmi:test:deepObject20;1", + "@type": "Object", + "fields": { + "name": "Field20", + "schema": { + "@id": "dtmi:test:deepObject21;1", + "@type": "Object", + "fields": { + "name": "Field21", + "schema": { + "@id": "dtmi:test:deepObject22;1", + "@type": "Object", + "fields": { + "name": "Field22", + "schema": { + "@id": "dtmi:test:deepObject23;1", + "@type": "Object", + "fields": { + "name": "Field23", + "schema": { + "@id": "dtmi:test:deepObject24;1", + "@type": "Object", + "fields": { + "name": "Field24", + "schema": "double" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ] + } + ] + } + ], + "expect": { + "elementsCount": 26 + } +} diff --git a/test-cases/generated/ObjectTooDeepOnvifLimitsV4.json b/test-cases/generated/ObjectTooDeepOnvifLimitsV4.json new file mode 100644 index 00000000..d8b00485 --- /dev/null +++ b/test-cases/generated/ObjectTooDeepOnvifLimitsV4.json @@ -0,0 +1,218 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "schemas": [ + { + "@id": "dtmi:test:deepObject1;1", + "@type": "Object", + "fields": [ + { + "name": "Field1", + "schema": { + "@id": "dtmi:test:deepObject2;1", + "@type": "Object", + "fields": { + "name": "Field2", + "schema": { + "@id": "dtmi:test:deepObject3;1", + "@type": "Object", + "fields": { + "name": "Field3", + "schema": { + "@id": "dtmi:test:deepObject4;1", + "@type": "Object", + "fields": { + "name": "Field4", + "schema": { + "@id": "dtmi:test:deepObject5;1", + "@type": "Object", + "fields": { + "name": "Field5", + "schema": { + "@id": "dtmi:test:deepObject6;1", + "@type": "Object", + "fields": { + "name": "Field6", + "schema": { + "@id": "dtmi:test:deepObject7;1", + "@type": "Object", + "fields": { + "name": "Field7", + "schema": { + "@id": "dtmi:test:deepObject8;1", + "@type": "Object", + "fields": { + "name": "Field8", + "schema": { + "@id": "dtmi:test:deepObject9;1", + "@type": "Object", + "fields": { + "name": "Field9", + "schema": { + "@id": "dtmi:test:deepObject10;1", + "@type": "Object", + "fields": { + "name": "Field10", + "schema": { + "@id": "dtmi:test:deepObject11;1", + "@type": "Object", + "fields": { + "name": "Field11", + "schema": { + "@id": "dtmi:test:deepObject12;1", + "@type": "Object", + "fields": { + "name": "Field12", + "schema": { + "@id": "dtmi:test:deepObject13;1", + "@type": "Object", + "fields": { + "name": "Field13", + "schema": { + "@id": "dtmi:test:deepObject14;1", + "@type": "Object", + "fields": { + "name": "Field14", + "schema": { + "@id": "dtmi:test:deepObject15;1", + "@type": "Object", + "fields": { + "name": "Field15", + "schema": { + "@id": "dtmi:test:deepObject16;1", + "@type": "Object", + "fields": { + "name": "Field16", + "schema": { + "@id": "dtmi:test:deepObject17;1", + "@type": "Object", + "fields": { + "name": "Field17", + "schema": { + "@id": "dtmi:test:deepObject18;1", + "@type": "Object", + "fields": { + "name": "Field18", + "schema": { + "@id": "dtmi:test:deepObject19;1", + "@type": "Object", + "fields": { + "name": "Field19", + "schema": { + "@id": "dtmi:test:deepObject20;1", + "@type": "Object", + "fields": { + "name": "Field20", + "schema": { + "@id": "dtmi:test:deepObject21;1", + "@type": "Object", + "fields": { + "name": "Field21", + "schema": { + "@id": "dtmi:test:deepObject22;1", + "@type": "Object", + "fields": { + "name": "Field22", + "schema": { + "@id": "dtmi:test:deepObject23;1", + "@type": "Object", + "fields": { + "name": "Field23", + "schema": { + "@id": "dtmi:test:deepObject24;1", + "@type": "Object", + "fields": { + "name": "Field24", + "schema": { + "@id": "dtmi:test:deepObject25;1", + "@type": "Object", + "fields": { + "name": "Field25", + "schema": "double" + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + ] + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:excessiveDepthWide", + "PrimaryID": "dtmi:test:deepObject1;1", + "SecondaryID": "dtmi:test:deepObject25:_fields:__Field25;1", + "Property": null, + "Value": null, + "PrimaryIndex": 0, + "PrimaryStart": 9, + "PrimaryEnd": 186, + "SecondaryIndex": 0, + "SecondaryStart": 133, + "SecondaryEnd": 136 + } + ] + } +} diff --git a/test-cases/generated/TelemetryDescriptionMaxLongOnvifLimitsV4.json b/test-cases/generated/TelemetryDescriptionMaxLongOnvifLimitsV4.json new file mode 100644 index 00000000..73fe7424 --- /dev/null +++ b/test-cases/generated/TelemetryDescriptionMaxLongOnvifLimitsV4.json @@ -0,0 +1,45 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": true, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "elements": [ + { + "id": "dtmi:test:aTelemetry;1", + "type": "Telemetry", + "properties": { + "name": "Foo", + "description": { + "en": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "schema": "dtmi:dtdl:instance:Schema:double;2" + } + } + ] + } +} diff --git a/test-cases/generated/TelemetryDescriptionMaxLongV2.json b/test-cases/generated/TelemetryDescriptionMaxLongV2.json new file mode 100644 index 00000000..cf5e82c0 --- /dev/null +++ b/test-cases/generated/TelemetryDescriptionMaxLongV2.json @@ -0,0 +1,36 @@ +{ + "valid": true, + "quirks": [], + "options": [], + "input": [ + { + "@context": "dtmi:dtdl:context;2", + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "elements": [ + { + "id": "dtmi:test:aTelemetry;1", + "type": "Telemetry", + "properties": { + "name": "Foo", + "description": { + "en": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "schema": "dtmi:dtdl:instance:Schema:double;2" + } + } + ] + } +} diff --git a/test-cases/generated/TelemetryDescriptionMaxLongV3.json b/test-cases/generated/TelemetryDescriptionMaxLongV3.json new file mode 100644 index 00000000..a327b957 --- /dev/null +++ b/test-cases/generated/TelemetryDescriptionMaxLongV3.json @@ -0,0 +1,36 @@ +{ + "valid": true, + "quirks": [], + "options": [], + "input": [ + { + "@context": "dtmi:dtdl:context;3", + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "elements": [ + { + "id": "dtmi:test:aTelemetry;1", + "type": "Telemetry", + "properties": { + "name": "Foo", + "description": { + "en": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "schema": "dtmi:dtdl:instance:Schema:double;2" + } + } + ] + } +} diff --git a/test-cases/generated/TelemetryDescriptionMaxLongV4.json b/test-cases/generated/TelemetryDescriptionMaxLongV4.json new file mode 100644 index 00000000..59ce2682 --- /dev/null +++ b/test-cases/generated/TelemetryDescriptionMaxLongV4.json @@ -0,0 +1,36 @@ +{ + "valid": true, + "quirks": [], + "options": [], + "input": [ + { + "@context": "dtmi:dtdl:context;4", + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "elements": [ + { + "id": "dtmi:test:aTelemetry;1", + "type": "Telemetry", + "properties": { + "name": "Foo", + "description": { + "en": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "schema": "dtmi:dtdl:instance:Schema:double;2" + } + } + ] + } +} diff --git a/test-cases/generated/TelemetryDescriptionTooLongOnvifLimitsV4.json b/test-cases/generated/TelemetryDescriptionTooLongOnvifLimitsV4.json new file mode 100644 index 00000000..e28ed264 --- /dev/null +++ b/test-cases/generated/TelemetryDescriptionTooLongOnvifLimitsV4.json @@ -0,0 +1,43 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:langStringValueTooLong", + "PrimaryID": "dtmi:test:aTelemetry;1", + "SecondaryID": null, + "Property": "description", + "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "PrimaryIndex": 0, + "PrimaryStart": 13 + } + ] + } +} diff --git a/test-cases/generated/TelemetryDescriptionTooLongV2.json b/test-cases/generated/TelemetryDescriptionTooLongV2.json new file mode 100644 index 00000000..d3149b17 --- /dev/null +++ b/test-cases/generated/TelemetryDescriptionTooLongV2.json @@ -0,0 +1,34 @@ +{ + "valid": false, + "quirks": [], + "options": [], + "input": [ + { + "@context": "dtmi:dtdl:context;2", + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:langStringValueTooLong", + "PrimaryID": "dtmi:test:aTelemetry;1", + "SecondaryID": null, + "Property": "description", + "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "PrimaryIndex": 0, + "PrimaryStart": 10 + } + ] + } +} diff --git a/test-cases/generated/TelemetryDescriptionTooLongV3.json b/test-cases/generated/TelemetryDescriptionTooLongV3.json new file mode 100644 index 00000000..12ad34b9 --- /dev/null +++ b/test-cases/generated/TelemetryDescriptionTooLongV3.json @@ -0,0 +1,34 @@ +{ + "valid": false, + "quirks": [], + "options": [], + "input": [ + { + "@context": "dtmi:dtdl:context;3", + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:langStringValueTooLong", + "PrimaryID": "dtmi:test:aTelemetry;1", + "SecondaryID": null, + "Property": "description", + "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "PrimaryIndex": 0, + "PrimaryStart": 10 + } + ] + } +} diff --git a/test-cases/generated/TelemetryDescriptionTooLongV4.json b/test-cases/generated/TelemetryDescriptionTooLongV4.json new file mode 100644 index 00000000..5cf353ba --- /dev/null +++ b/test-cases/generated/TelemetryDescriptionTooLongV4.json @@ -0,0 +1,34 @@ +{ + "valid": false, + "quirks": [], + "options": [], + "input": [ + { + "@context": "dtmi:dtdl:context;4", + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "description": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:langStringValueTooLong", + "PrimaryID": "dtmi:test:aTelemetry;1", + "SecondaryID": null, + "Property": "description", + "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "PrimaryIndex": 0, + "PrimaryStart": 10 + } + ] + } +} diff --git a/test-cases/generated/TelemetryDisplayNameArrayElementValueTooLongOnvifLimitsV4.json b/test-cases/generated/TelemetryDisplayNameArrayElementValueTooLongOnvifLimitsV4.json new file mode 100644 index 00000000..a4e9dbfa --- /dev/null +++ b/test-cases/generated/TelemetryDisplayNameArrayElementValueTooLongOnvifLimitsV4.json @@ -0,0 +1,52 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "displayName": [ + { + "@language": "en-US", + "@value": "valid" + }, + { + "@language": "mp", + "@value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + } + ], + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:langStringValueTooLong", + "PrimaryID": "dtmi:test:aTelemetry;1", + "SecondaryID": null, + "Property": "displayName", + "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "PrimaryIndex": 0, + "PrimaryStart": 20 + } + ] + } +} diff --git a/test-cases/generated/TelemetryDisplayNameLanguageMapValueTooLongOnvifLimitsV4.json b/test-cases/generated/TelemetryDisplayNameLanguageMapValueTooLongOnvifLimitsV4.json new file mode 100644 index 00000000..7373efd9 --- /dev/null +++ b/test-cases/generated/TelemetryDisplayNameLanguageMapValueTooLongOnvifLimitsV4.json @@ -0,0 +1,46 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "displayName": { + "en-US": "valid", + "mp": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + }, + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:langStringValueTooLong", + "PrimaryID": "dtmi:test:aTelemetry;1", + "SecondaryID": null, + "Property": "displayName", + "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "PrimaryIndex": 0, + "PrimaryStart": 15 + } + ] + } +} diff --git a/test-cases/generated/TelemetryDisplayNameStringTooLongOnvifLimitsV4.json b/test-cases/generated/TelemetryDisplayNameStringTooLongOnvifLimitsV4.json new file mode 100644 index 00000000..2feada16 --- /dev/null +++ b/test-cases/generated/TelemetryDisplayNameStringTooLongOnvifLimitsV4.json @@ -0,0 +1,43 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "Foo", + "displayName": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:langStringValueTooLong", + "PrimaryID": "dtmi:test:aTelemetry;1", + "SecondaryID": null, + "Property": "displayName", + "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "PrimaryIndex": 0, + "PrimaryStart": 13 + } + ] + } +} diff --git a/test-cases/generated/TelemetryNameMaxLongOnvifLimitsV4.json b/test-cases/generated/TelemetryNameMaxLongOnvifLimitsV4.json new file mode 100644 index 00000000..b8f9503c --- /dev/null +++ b/test-cases/generated/TelemetryNameMaxLongOnvifLimitsV4.json @@ -0,0 +1,41 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": true, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "aaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "dtmi:dtdl:instance:Schema:double;2" + } + } + ] + } +} diff --git a/test-cases/generated/TelemetryNameTooLongOnvifLimitsV4.json b/test-cases/generated/TelemetryNameTooLongOnvifLimitsV4.json new file mode 100644 index 00000000..6d7ad6ea --- /dev/null +++ b/test-cases/generated/TelemetryNameTooLongOnvifLimitsV4.json @@ -0,0 +1,42 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:stringTooLong", + "PrimaryID": "dtmi:test:aTelemetry;1", + "SecondaryID": null, + "Property": "name", + "Value": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "PrimaryIndex": 0, + "PrimaryStart": 12 + } + ] + } +} diff --git a/test-cases/generated/TelemetryWithFeatureContextAfterLimitlessV4.json b/test-cases/generated/TelemetryWithFeatureContextAfterLimitlessV4.json new file mode 100644 index 00000000..cd9d30c9 --- /dev/null +++ b/test-cases/generated/TelemetryWithFeatureContextAfterLimitlessV4.json @@ -0,0 +1,48 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1", + "dtmi:dtdl:extension:quantitativeTypes;2" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:extension:quantitativeTypes;2", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": [ + "Telemetry", + "Velocity" + ], + "name": "currentSpeed", + "schema": "double", + "unit": "kilometrePerSecond" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:missingLimitContext", + "PrimaryID": null, + "SecondaryID": null, + "Property": null, + "Value": "dtmi:dtdl:context;4#limitless", + "PrimaryIndex": 0, + "PrimaryStart": 3 + } + ] + } +} diff --git a/test-cases/generated/TelemetryWithInvalidLimitContextFragmentV4.json b/test-cases/generated/TelemetryWithInvalidLimitContextFragmentV4.json new file mode 100644 index 00000000..dbd5bd96 --- /dev/null +++ b/test-cases/generated/TelemetryWithInvalidLimitContextFragmentV4.json @@ -0,0 +1,42 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1#limits" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "example", + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:invalidContextSpecifier", + "PrimaryID": null, + "SecondaryID": null, + "Property": null, + "Value": "dtmi:dtdl:limits:onvif;1#limits", + "PrimaryIndex": 0, + "PrimaryStart": 4 + } + ] + } +} diff --git a/test-cases/generated/TelemetryWithLeadingOnvifLimitContextV4.json b/test-cases/generated/TelemetryWithLeadingOnvifLimitContextV4.json new file mode 100644 index 00000000..e9a8ac72 --- /dev/null +++ b/test-cases/generated/TelemetryWithLeadingOnvifLimitContextV4.json @@ -0,0 +1,48 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1", + "dtmi:dtdl:extension:quantitativeTypes;2" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:limits:onvif;1", + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:extension:quantitativeTypes;2" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": [ + "Telemetry", + "Velocity" + ], + "name": "currentSpeed", + "schema": "double", + "unit": "kilometrePerSecond" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:missingDtdlContext", + "PrimaryID": null, + "SecondaryID": null, + "Property": null, + "Value": null, + "PrimaryIndex": 0, + "PrimaryStart": 3 + } + ] + } +} diff --git a/test-cases/generated/TelemetryWithNonFollowingOnvifLimitContextV4.json b/test-cases/generated/TelemetryWithNonFollowingOnvifLimitContextV4.json new file mode 100644 index 00000000..9126fdc5 --- /dev/null +++ b/test-cases/generated/TelemetryWithNonFollowingOnvifLimitContextV4.json @@ -0,0 +1,48 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1", + "dtmi:dtdl:extension:quantitativeTypes;2" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4", + "dtmi:dtdl:limits:onvif;1", + "dtmi:dtdl:extension:quantitativeTypes;2" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": [ + "Telemetry", + "Velocity" + ], + "name": "currentSpeed", + "schema": "double", + "unit": "kilometrePerSecond" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:misplacedLimitContext", + "PrimaryID": null, + "SecondaryID": null, + "Property": null, + "Value": "dtmi:dtdl:limits:onvif;1", + "PrimaryIndex": 0, + "PrimaryStart": 4 + } + ] + } +} diff --git a/test-cases/generated/TelemetryWithOnvifAndExtensionContextsV4.json b/test-cases/generated/TelemetryWithOnvifAndExtensionContextsV4.json new file mode 100644 index 00000000..524a1006 --- /dev/null +++ b/test-cases/generated/TelemetryWithOnvifAndExtensionContextsV4.json @@ -0,0 +1,54 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1", + "dtmi:dtdl:extension:quantitativeTypes;2" + ], + "valid": true, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1", + "dtmi:dtdl:extension:quantitativeTypes;2" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": [ + "Telemetry", + "Velocity" + ], + "name": "currentSpeed", + "schema": "double", + "unit": "kilometrePerSecond" + } + ] + } + ], + "expect": { + "elementCount": 9, + "elements": [ + { + "id": "dtmi:test:aTelemetry;1", + "type": "Telemetry", + "properties": { + "name": "currentSpeed", + "schema": "dtmi:dtdl:instance:Schema:double;2" + }, + "supplementalTypes": [ + "dtmi:dtdl:extension:quantitativeTypes:v2:class:Velocity" + ], + "supplementalProperties": { + "dtmi:dtdl:extension:quantitativeTypes:v2:property:unit": "dtmi:dtdl:extension:quantitativeTypes:v2:unit:kilometrePerSecond" + } + } + ] + } +} diff --git a/test-cases/generated/TelemetryWithOnvifLimitsAcceptableVersionV4.json b/test-cases/generated/TelemetryWithOnvifLimitsAcceptableVersionV4.json new file mode 100644 index 00000000..ff65164c --- /dev/null +++ b/test-cases/generated/TelemetryWithOnvifLimitsAcceptableVersionV4.json @@ -0,0 +1,41 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": true, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif;1" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "example", + "schema": "double" + } + ] + } + ], + "expect": { + "elements": [ + { + "id": "dtmi:test:aTelemetry;1", + "type": "Telemetry", + "properties": { + "name": "example", + "schema": "dtmi:dtdl:instance:Schema:double;2" + } + } + ] + } +} diff --git a/test-cases/generated/TelemetryWithOnvifLimitsUnacceptableV4.json b/test-cases/generated/TelemetryWithOnvifLimitsUnacceptableV4.json new file mode 100644 index 00000000..2f23b6c1 --- /dev/null +++ b/test-cases/generated/TelemetryWithOnvifLimitsUnacceptableV4.json @@ -0,0 +1,40 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "example", + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:disallowedLimitContext", + "PrimaryID": null, + "SecondaryID": null, + "Property": null, + "Value": "dtmi:dtdl:limits:onvif;1", + "PrimaryIndex": 0, + "PrimaryStart": 4 + } + ] + } +} diff --git a/test-cases/generated/TelemetryWithOnvifLimitsUnacceptableVersionV4.json b/test-cases/generated/TelemetryWithOnvifLimitsUnacceptableVersionV4.json new file mode 100644 index 00000000..b7a95af4 --- /dev/null +++ b/test-cases/generated/TelemetryWithOnvifLimitsUnacceptableVersionV4.json @@ -0,0 +1,42 @@ +{ + "requiredContexts": [ + "dtmi:dtdl:limits:onvif;1" + ], + "valid": false, + "quirks": [], + "options": [], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif;2" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:test:anInterface;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:test:aTelemetry;1", + "@type": "Telemetry", + "name": "example", + "schema": "double" + } + ] + } + ], + "expect": { + "parsingErrors": [ + { + "ValidationID": "dtmi:dtdl:parsingError:disallowedLimitContext", + "PrimaryID": null, + "SecondaryID": null, + "Property": null, + "Value": "dtmi:dtdl:limits:onvif;1", + "PrimaryIndex": 0, + "PrimaryStart": 4 + } + ] + } +} diff --git a/test-cases/specification/Requirement-ExtensionLimitsFollowsLimitlessV4.json b/test-cases/specification/Requirement-ExtensionLimitsFollowsLimitlessV4.json index b76e44e1..1edb53c6 100644 --- a/test-cases/specification/Requirement-ExtensionLimitsFollowsLimitlessV4.json +++ b/test-cases/specification/Requirement-ExtensionLimitsFollowsLimitlessV4.json @@ -1 +1,167 @@ -[] +[ + { + "valid": true, + "options": [ + "DisallowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + }, + { + "valid": false, + "options": [ + "DisallowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + }, + { + "valid": false, + "options": [ + "AllowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + }, + { + "valid": false, + "options": [ + "DisallowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:extension:quantitativeTypes;1", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + }, + { + "valid": false, + "options": [ + "AllowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:extension:quantitativeTypes;1", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + }, + { + "valid": false, + "options": [ + "DisallowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + }, + { + "valid": false, + "options": [ + "AllowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + }, + { + "valid": false, + "options": [ + "DisallowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": "dtmi:dtdl:limits:onvif;1", + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + }, + { + "valid": false, + "options": [ + "AllowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": "dtmi:dtdl:limits:onvif;1", + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + } +] diff --git a/test-cases/specification/Requirement-LimitlessContextFollowedByLimitsV4.json b/test-cases/specification/Requirement-LimitlessContextFollowedByLimitsV4.json index f249fdd9..c340f856 100644 --- a/test-cases/specification/Requirement-LimitlessContextFollowedByLimitsV4.json +++ b/test-cases/specification/Requirement-LimitlessContextFollowedByLimitsV4.json @@ -31,6 +31,25 @@ } ] }, + { + "valid": true, + "options": [ + "DisallowUndefinedExtensions" + ], + "acceptableLimits": [ + "dtmi:dtdl:limits:onvif" + ], + "input": [ + { + "@context": [ + "dtmi:dtdl:context;4#limitless", + "dtmi:dtdl:limits:onvif;1" + ], + "@id": "dtmi:ex:id;1", + "@type": "Interface" + } + ] + }, { "valid": false, "options": [