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
Given the following schema, cog should be able to correctly infer a discriminator and the associated discrimination mapping:
Layout: GridLayoutKind|RowsLayoutKind#GridLayoutKindType: "GridLayout"GridLayoutKind: {
kind: #GridLayoutKindType&"GridLayout"// kind: #GridLayoutKindType // ← this should work toogridLayoutProperty: string
}
#RowsLayoutKindType: "RowsLayout"RowsLayoutKind: {
kind: #RowsLayoutKindType&"RowsLayout"// kind: #RowsLayoutKindType // ← this should work toorowsLayoutProperty: string
}
Today, the kind field in RowsLayoutKind and GridLayoutKind is not used as a discriminator because it is incorrectly parsed as a reference instead of a "constant reference".
This should be fixed and we need to make sure that once it is, we generate valid code for the resulting disjunction (especially in Go)
The text was updated successfully, but these errors were encountered:
Given the following schema, cog should be able to correctly infer a discriminator and the associated discrimination mapping:
Today, the
kind
field inRowsLayoutKind
andGridLayoutKind
is not used as a discriminator because it is incorrectly parsed as a reference instead of a "constant reference".This should be fixed and we need to make sure that once it is, we generate valid code for the resulting disjunction (especially in Go)
The text was updated successfully, but these errors were encountered: