Skip to content

Commit 05a08f4

Browse files
fredriknordlandermmjohansson
authored andcommitted
fix: change parser strategy for same content (#499)
Signed-off-by: Fredrik Nordlander <fredrik.nordlander@digg.se>
1 parent 30ef5b6 commit 05a08f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/validateUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function detectSpecFormatPreference(
7878

7979
if (raw) {
8080
const t = raw.trim();
81-
if (t.startsWith('{') || t.startsWith('[')) return 'auto';
81+
if (t.startsWith('{') || t.startsWith('[')) return 'always';
8282
if (/^\s*<\?xml|^\s*<[\w-]+[\s>]/i.test(t)) return 'never';
8383
}
8484

0 commit comments

Comments
 (0)