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

exlude a propery from type/interface #587

Open deepakt2b opened 10 months ago

deepakt2b commented 10 months ago

Is there any way to exclude/ignore a key based on the some key name regex or via it's ts type

For eg - type MyType = { age: number nameSuffix: NameType }

so here I want to exclude the nameSuffix key either by suffix keyword or NameType, as this type is not json convertiable so I totally want to ignore it.