-
-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
We should have a way to support 1 param determining the type of another param.
ie assume I have the following api:
name: "bar",
params: [
{
name: 'foo' ,
schema: { enum: [1,2 } }
},
{
name: 'baz',
schema: {
oneOf: [
{ type: 'string' },
{ type: 'number' }
]
}
}
]
If my api is such that when the param foo
is 1
, I need the param baz
to be string
, there is no way to represent that constraint at the moment.
This issue is to come up with ideas and discuss ways this can be solved
s1na
Metadata
Metadata
Assignees
Labels
No labels