fix: enable json repair by default

Fix #215
This commit is contained in:
ShareVB committed 2025-12-13 22:28:46 +01:00
1 parent 2b9f4f84da
commit a87559696c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ const schemaUrl = useQueryParamOrStorage<string>({ name: 'schema', storageName:
const { schemas, errors: validationErrors } = useJsonSchemaValidation({ json: jsonContent, schemaUrl, schemaData });
const indentSize = useITStorage('json-linter:indent-size', 3);
const autoRepair = useITStorage('json-linter:repair', false);
const autoRepair = useITStorage('json-linter:repair', true);
const cleanJson = computed(() => {
try {
let jsonContentValue = jsonContent.value;
+1 -1
View File
@@ -21,7 +21,7 @@ const schemaData = useITStorage('json-prettify:schema-data', '');
const indentSize = useITStorage('json-prettify:indent-size', 3);
const sortKeys = useITStorage('json-prettify:sort-keys', true);
const unescapeUnicode = useITStorage('json-prettify:unescape-unicode', false);
const repairJson = useITStorage('json-prettify:repair-json', false);
const repairJson = useITStorage('json-prettify:repair-json', true);
const cleanJson = computed(() => withDefaultOnError(() => formatJson({ rawJson, indentSize, sortKeys, unescapeUnicode, repairJson }), ''));
const rawJsonValidation = useValidation({