Skip to content

Commit

Permalink
fix(json-type): 馃悰 make "discriminator" field optional
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Apr 25, 2024
1 parent e14655a commit 3a4bd9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/json-type/type/classes/OrType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class OrType<T extends Type[]> extends AbstractType<schema.OrSchema<{[K i
return options as any;
}

public options(options: schema.Optional<schema.OrSchema> & Pick<schema.OrSchema, 'discriminator'>): this {
public options(options: schema.Optional<schema.OrSchema> & Partial<Pick<schema.OrSchema, 'discriminator'>>): this {
Object.assign(this.schema, options);
return this;
}
Expand Down

0 comments on commit 3a4bd9c

Please sign in to comment.