YousefED / typescript-json-schema

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

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

Open robaca opened 3 months ago

robaca commented 3 months ago

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

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