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
Code above reads in the @example jsdoc field and outputs it as examples: .... The @examples field seems to be automatically/generically output as the examples: ... field.
From what I can see, the getExampleAnnotation method should not read in the @example jsdoc field, and should read in the @examples jsdoc field. Or perhaps both should be explicitly handled?
The text was updated successfully, but these errors were encountered:
JoshuaCarter
changed the title
jsdoc @example & @examples are both output into "examples" fields.
jsdoc @example & @examples are both output into "examples" field
Mar 28, 2023
In short, I want pic below:
But can only have pic below:
ts-json-schema-generator/src/AnnotationsReader/ExtendedAnnotationsReader.ts
Lines 91 to 94 in fad197f
Code above reads in the
@example
jsdoc field and outputs it asexamples: ...
. The@examples
field seems to be automatically/generically output as theexamples: ...
field.From what I can see, the
getExampleAnnotation
method should not read in the@example
jsdoc field, and should read in the@examples
jsdoc field. Or perhaps both should be explicitly handled?The text was updated successfully, but these errors were encountered: