oneOf with object
Closed this issue · 1 comments
adrianschneider94 commented
- I'm submitting a ...
[x] bug report
[x] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project
If an object is part of a oneOf Field, it gets a name with square brackets:
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "object",
"properties": {
"test": {
"type": "string"
}
}
}
]
}
turns into
type VariableValueOneOf[3] {
test: String
}
union VariableValue = String | Float | Boolean | VariableValueOneOf[3]
what is a syntax error.
yadavrohit211 commented
I am also facing same issue while using appolo server