Skip to content

Commit 3a4bd9c

Browse files
committed
fix(json-type): 🐛 make "discriminator" field optional
1 parent e14655a commit 3a4bd9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/json-type/type/classes/OrType.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class OrType<T extends Type[]> extends AbstractType<schema.OrSchema<{[K i
5757
return options as any;
5858
}
5959

60-
public options(options: schema.Optional<schema.OrSchema> & Pick<schema.OrSchema, 'discriminator'>): this {
60+
public options(options: schema.Optional<schema.OrSchema> & Partial<Pick<schema.OrSchema, 'discriminator'>>): this {
6161
Object.assign(this.schema, options);
6262
return this;
6363
}

0 commit comments

Comments
 (0)