Skip to content

Commit

Permalink
restore appropriate Onvif limit values (#136)
Browse files Browse the repository at this point in the history
* Copy specification test cases from DTDL repo

* restore appropriate Onvif limit values
  • Loading branch information
jrdouceur authored Oct 4, 2024
1 parent 16fa4a9 commit 71d2cd6
Show file tree
Hide file tree
Showing 80 changed files with 1,221 additions and 729 deletions.
8 changes: 4 additions & 4 deletions dotnet/src/DTDLParser/generated/DTArrayInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2845,7 +2845,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2912,7 +2912,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2965,7 +2965,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -3383,7 +3383,7 @@ private void CheckRestrictionsV4(ParsingErrorCollection parsingErrorCollection)
int maxDepthOfElementSchemaOrSchema = this.LimitSpecifier switch
{
"" => 8,
"onvif_1" => 20,
"onvif_1" => 16,
_ => 0,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTBooleanInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2598,7 +2598,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2665,7 +2665,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2718,7 +2718,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTByteInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -1618,7 +1618,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -1671,7 +1671,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTBytesInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1540,7 +1540,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -1607,7 +1607,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -1660,7 +1660,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTCommandInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3237,7 +3237,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -3304,7 +3304,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -3357,7 +3357,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTCommandPayloadInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2982,7 +2982,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -3049,7 +3049,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -3102,7 +3102,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTCommandRequestInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2389,7 +2389,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2456,7 +2456,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2509,7 +2509,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTCommandResponseInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2389,7 +2389,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2456,7 +2456,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2509,7 +2509,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTCommandTypeInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2518,7 +2518,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2585,7 +2585,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2638,7 +2638,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
8 changes: 4 additions & 4 deletions dotnet/src/DTDLParser/generated/DTComplexSchemaInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2300,7 +2300,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2348,7 +2348,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2401,7 +2401,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2608,7 +2608,7 @@ private void CheckRestrictionsV4(ParsingErrorCollection parsingErrorCollection)
int maxDepthOfElementSchemaOrSchema = this.LimitSpecifier switch
{
"" => 8,
"onvif_1" => 20,
"onvif_1" => 16,
_ => 0,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTComponentInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2975,7 +2975,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -3042,7 +3042,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -3095,7 +3095,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTContentInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2489,7 +2489,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2542,7 +2542,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTDateInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2684,7 +2684,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2737,7 +2737,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
6 changes: 3 additions & 3 deletions dotnet/src/DTDLParser/generated/DTDateTimeInfo.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2617,7 +2617,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 515,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2684,7 +2684,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 514,
"onvif_1" => 512,
_ => null,
};

Expand Down Expand Up @@ -2737,7 +2737,7 @@ internal override void ParsePropertiesV4(Model model, List<ParsedObjectPropertyI
int? maxLength = aggregateContext.LimitSpecifier switch
{
"" => 512,
"onvif_1" => 513,
"onvif_1" => 512,
_ => null,
};

Expand Down
Loading

0 comments on commit 71d2cd6

Please sign in to comment.