YousefED / typescript-json-schema

Generate json-schema from your Typescript sources
BSD 3-Clause "New" or "Revised" License
3.17k stars 323 forks source link

Parameter `--title` adds `title` to `$ref` properties #594

Open robaca opened 8 months ago

robaca commented 8 months ago

When adding the --title parameter, I get a schema with the following content:

{
  "definitions": {
    "SomePropertyType": { ... }
  },
  "properties": {
    "someProperty": {
       "$ref": "#/definitions/SomePropertyType",
       "title": "someProperty"
     }
  }
}