Skip to content

Commit f2dafbf

Browse files
committed
feat: akip add json when already has json-records
1 parent c074475 commit f2dafbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/events/content-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export function getCompatibleTypes(
207207
}
208208

209209
// Allow optionally formatting non-JSON as JSON, if it looks like it might be
210-
if (firstChar === '{' || firstChar === '[') {
210+
if ((firstChar === '{' && !types.has('json-records')) || firstChar === '[') {
211211
types.add('json');
212212
}
213213

0 commit comments

Comments
 (0)