JSON Schema Basics
schema-dsl generates JSON Schema Draft 7 style objects with a few additional internal fields reserved for use by validators.
Common fields:
typepropertiesrequiredminLength/maxLengthminimum/maximumformatenumitems
When outputting pure JSON Schema, please use toJsonSchema().
Corresponding sample file
Example entry: json-schema-basics.ts
Description: Directly compare the output differences between toSchema() and toJsonSchema(), and display the JSON Schema structure returned by the object entry.