Skip to content

Commit

Permalink
Add typeName check for AnyURI mapped to string in csharp
Browse files Browse the repository at this point in the history
  • Loading branch information
standeren committed Nov 3, 2024
1 parent d1bb949 commit fc35afa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ or BaseValueType.GMonth
or BaseValueType.Time
or BaseValueType.TimePeriod
or BaseValueType.Date
or BaseValueType.AnyURI
or null => ("string", false),
BaseValueType.Int => ("int", true),
BaseValueType.Short => ("short", true),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public IEnumerator<object[]> GetEnumerator()
yield return new object[] { "Model/XmlSchema/General/SimpleTypeRestrictionsExtended.xsd", "decimalRangeWithLimits", "decimal?", "[Range(-100.0, 100.0)]" };
yield return new object[] { "Model/XmlSchema/General/SimpleTypeRestrictionsExtended.xsd", "decimalRangeLeftLimit", "decimal?", "[Range(-100.0, Double.MaxValue)]" };
yield return new object[] { "Model/XmlSchema/General/SimpleTypeRestrictionsExtended.xsd", "decimalRangeRightLimit", "decimal?", "[Range(Double.MinValue, 100.0d)]" };
yield return new object[] { "Model/XmlSchema/General/SimpleTypeRestrictionsExtended.xsd", "uriProperty", "string", @"[RegularExpression(@""^https?://[^\s/$.?#].[^\s]*$"")]" };
}

IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
Expand Down

0 comments on commit fc35afa

Please sign in to comment.