Function: formatAsJSON()
ts
function formatAsJSON(schema, pretty?): string;Defined in: schemaFormatters.ts:10
Formats the schema as JSON string
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
schema | ExportedSchema | undefined | The schema to format |
pretty | boolean | true | Whether to pretty print the JSON |
Returns
string
The configuration schema as a JSON string