Skip to content

Commit f5e8945

Browse files
committed
fmt
1 parent def478d commit f5e8945

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/schema-generator/src/schema-generator.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,10 @@ export class SchemaGenerator implements ISchemaGenerator {
274274

275275
// Handle boolean schemas (rare, but supported by JSON Schema)
276276
if (typeof base === "boolean") {
277-
return base
278-
? { $schema: "https://json-schema.org/draft-07/schema#" }
279-
: {
280-
$schema: "https://json-schema.org/draft-07/schema#",
281-
not: true,
282-
};
277+
return base ? { $schema: "https://json-schema.org/draft-07/schema#" } : {
278+
$schema: "https://json-schema.org/draft-07/schema#",
279+
not: true,
280+
};
283281
}
284282

285283
// Object schema: attach only the definitions actually referenced by the

0 commit comments

Comments
 (0)