We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent def478d commit f5e8945Copy full SHA for f5e8945
packages/schema-generator/src/schema-generator.ts
@@ -274,12 +274,10 @@ export class SchemaGenerator implements ISchemaGenerator {
274
275
// Handle boolean schemas (rare, but supported by JSON Schema)
276
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
- };
+ return base ? { $schema: "https://json-schema.org/draft-07/schema#" } : {
+ $schema: "https://json-schema.org/draft-07/schema#",
+ not: true,
+ };
283
}
284
285
// Object schema: attach only the definitions actually referenced by the
0 commit comments