Use the command "Generate JSON Schema for type..." to get a list of type definitions and interfaces on the page for which a JSON schema can be generated.
The generated schema is opened on a new document and can be saved from there.
Extension Settings
This extension contributes the following settings:
generateJSONSchema.expose: Types to include in the 'definitions' section of the JSON Schema.
generateJSONSchema.topRef: Include top reference.
generateJSONSchema.jsDoc: JsDoc description to include in JSON schema.
generateJSONSchema.sortProps: Sort properties in JSON schema.
generateJSONSchema.skipTypeCheck: Skip type checks for better performance.
generateJSONSchema.additionalProperties: Allow additional properties for objects that have no index signature.
generateJSONSchema.minify: Minify JSON schema
generateJSONSchema.strictTuples: Do not allow additional items on tuples.
generateJSONSchema.encodeRefs: According to the standard, references must be valid URIs but some tools do not support encoded references.
generateJSONSchema.markdownDescription: Use markdown for descriptions.
generateJSONSchema.functions: Include functions in the schema.
generateJSONSchema.discriminatorType: Type to use for discriminator.
generateJSONSchema.extraTags: Additional tags to include in the schema.