Skip to content

Parsed ts dosen't have description when string array with description #660

Open
@GrangbelrLurain

Description

@GrangbelrLurain

I write string array schema with description, but it isn't in parsed typescript.
please update typescript with description.
if you not have time to update, please comment to me for push request this issue.

this is example for this issue, yaml json schema

$schema: http://json-schema.org/draft-07/schema#

title: peoples
type: array
description: |
  @group Shared/QueryString
  @description <adult>,<child age>|<child age>
items:
  type: string
  description: |
    @group Shared/QueryString/REGEXP
    @description travel peoples QueryString(<adult>,<child age>|<child age>|...)
  pattern: "^\\d+,(?:\\d+)(?:-\\d+)*$"
  examples:
    - "2,5-7"
    - "1,3-4-5"

this is parsed schema to typescript

/**
 * @group Shared/QueryString
 * @description <adult>,<child age>|<child age>
 */
export type Peoples = string[];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions