You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very similar (hence I copied the description and just substituted inputs and outputs) issue to #1682, but now caused by using an exported type as a discriminator.
For example,
export enum AEnum {
a = "a",
A = "A"
}
type A = { kind: AEnum, a: string }
type B = { kind: "b" | "B", b: string }
/**
* @discriminator kind
*/
export type AB = A | B;
Where the set of accepted values for the outermost kind enum is does not contain the values originating from AEnum, whereas it should list all possible options.
The text was updated successfully, but these errors were encountered:
Very similar (hence I copied the description and just substituted inputs and outputs) issue to #1682, but now caused by using an exported type as a discriminator.
For example,
results in the following schema for the type AB:
Schema result
Where the set of accepted values for the outermost kind enum is does not contain the values originating from AEnum, whereas it should list all possible options.
The text was updated successfully, but these errors were encountered: