vega / ts-json-schema-generator

Generate JSON schema from your Typescript sources
MIT License
1.44k stars 190 forks source link

Support for `"format": "uri-reference"` #1997

Closed Mearman closed 3 months ago

Mearman commented 3 months ago

From the docs it doesn't look like it's currently possible to generate a type with "format": "uri-reference" Handling URL type works perfectly, but my use case needs a relative URI.

domoritz commented 3 months ago

Happy to review a pull request for this request.

arthurfiorette commented 3 months ago

hey @Mearman, you can do the following:

/** @format uri-reference */
export type URI = string
Mearman commented 3 months ago

Discovered that after. Thank you.