You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 2020-12 dialect JSchema.ToString(SchemaVersion.Draft2020_12) generate prefixItems keyword instead of items when generating an array. Even if JSchema.ItemsPositionValidation=false. What should be done to generate items when I want to validate array of arbitrary length? According to json-schema docs, prefixItems keyword is used to validate arrays by applying a schema to each corresponding index of the array.
Example of C# type and resulting schema below:
public class TestType
{
public List<string> SomeObjects { get; set; }
}
In 2020-12 dialect
JSchema.ToString(SchemaVersion.Draft2020_12)
generateprefixItems
keyword instead ofitems
when generating an array. Even ifJSchema.ItemsPositionValidation=false
. What should be done to generateitems
when I want to validate array of arbitrary length? According to json-schema docs,prefixItems
keyword is used to validate arrays by applying a schema to each corresponding index of the array.Example of C# type and resulting schema below:
The text was updated successfully, but these errors were encountered: