We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When adding an arrayed type (e.g. Demo[]) to an object and then generating the schema from the resulting type, it omits all JSDoc annotations.
Demo[]
Here is an example with @pattern, but it also does not work with other annotations:
@pattern
/** * @pattern ^\d+$ */ type NumericString = string; export type Test = { numericStringValues: NumericString[] };
The generated schema looks like this:
{ "type": "object", "properties": { "numericStringValues": { "type": "array", "items": { "type": "string" }, "title": "numericStringValues" } }, "additionalProperties": false, "required": [ "numericStringValues" ] }
It should however look like this (see the pattern property):
{ "type": "object", "properties": { "numericStringValues": { "type": "array", "items": { "pattern": "^\d+$" "type": "string" }, "title": "numericStringValues" } }, "additionalProperties": false, "required": [ "numericStringValues" ] }
Version: 0.50.1 Schema Generation Settings:
0.50.1
{ ref: false, required: true, noExtraProps: true, validationKeywords: ['errorMessage'], titles: true, uniqueNames: true, rejectDateType: true }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When adding an arrayed type (e.g.
Demo[]
) to an object and then generating the schema from the resulting type, it omits all JSDoc annotations.Here is an example with
@pattern
, but it also does not work with other annotations:The generated schema looks like this:
It should however look like this (see the pattern property):
Version:
0.50.1
Schema Generation Settings:
The text was updated successfully, but these errors were encountered: