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
Currently when using JSchemaGenerator, if a property is of type ICollection<string> (for example List<string>), the [RegularExpressionAttribute] is ignored, for example the following class:
Currently when using
JSchemaGenerator
, if a property is of typeICollection<string>
(for exampleList<string>
), the[RegularExpressionAttribute]
is ignored, for example the following class:Generates the following schema:
It would be nice if there was built-in support for this, so the schema would be generated as follows:
The same probably applies to
[StringLengthAttribute]
as well, though I haven't tested this.As a workaround, a custom
JSchemaGenerationProvider
implementation can be used.The text was updated successfully, but these errors were encountered: