-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
currently the library does not support discriminated union, which is a very useful pattern in TS
can we do something like:
attributes: {
animal: {
type: 'discriminated union',
unions:{
fish:{
type:'map',
properties:{
habitat:{
type: 'lake'
}
}
dog:{
type:'map',
properties:{
habitat:{
type: 'land'
}
}
}
}
},
}
?
lsalazarm99
Metadata
Metadata
Assignees
Labels
No labels