You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| compat |`string ⎮ Tag[] ⎮ null`|`null`| When parsing, warn about compatibility issues with the given schema. When stringifying, use scalar styles that are parsed correctly by the `compat` schema as well as the actual schema. |
77
-
| customTags |`Tag[] ⎮ function`|| Array of [additional tags](#custom-data-types) to include in the schema |
78
-
| merge |`boolean`| 1.1: `true` 1.2: `false`| Enable support for `<<` merge keys. Default value depends on YAML version. |
79
-
| resolveKnownTags |`boolean`|`true`| When using the `'core'` schema, support parsing values with these explicit [YAML 1.1 tags]: `!!binary`, `!!omap`, `!!pairs`, `!!set`, `!!timestamp`. By default `true`. |
| compat |`string ⎮ Tag[] ⎮ null`|`null`| When parsing, warn about compatibility issues with the given schema. When stringifying, use scalar styles that are parsed correctly by the `compat` schema as well as the actual schema. |
77
+
| customTags |`Tag[] ⎮ function`|| Array of [additional tags](#custom-data-types) to include in the schema |
78
+
| merge |`boolean`| 1.1: `true` 1.2: `false`| Enable support for `<<` merge keys. Default value depends on YAML version. |
79
+
| resolveKnownTags |`boolean`|`true`| When using the `'core'` schema, support parsing values with these explicit [YAML 1.1 tags]: `!!binary`, `!!omap`, `!!pairs`, `!!set`, `!!timestamp`. By default `true`. |
80
80
| schema |`string`| 1.1: `'yaml-1.1` 1.2: `'core'`| The base schema to use. Default value depends on YAML version. Built-in support is provided for `'core'`, `'failsafe'`, `'json'`, and `'yaml-1.1'`. If using another value, `customTags` must be an array of tags. |
81
-
| sortMapEntries |`boolean ⎮``(a, b: Pair) => number`|`false`| When stringifying, sort map entries. If `true`, sort by comparing key values using the native less-than `<` operator. |
81
+
| sortMapEntries |`boolean ⎮``(a, b: Pair) => number`|`false`| When stringifying, sort map entries. If `true`, sort by comparing key values using the native less-than `<` operator. |
82
+
| toStringDefaults |`ToStringOptions`|| Override default values for `toString()` options. |
0 commit comments