NJsonSchema icon indicating copy to clipboard operation
NJsonSchema copied to clipboard

JsonSchemaAttribute - not possible to specify string array

Open Kokujou opened this issue 2 years ago • 0 comments

when i use the attribute like this:

    [JsonSchema(JsonObjectType.Array, ArrayItem = typeof(string))]

and then process it through the client generator i get the property as any[][] now yes, a string is essentially an array but we can't make it look like this!

i hope it's posisble to fix it. if there is already a workaround, please tell me, or if there are any alternatives to using this attribute

Kokujou avatar Aug 04 '22 09:08 Kokujou