desktop
desktop copied to clipboard
Bug: CRUD Builder creates extra schema entries
In Stoplight Next Desktop 4.2.0 x64, CRUD builder generates false extra model properties for some values.
Steps to reproduce:
- Enter CRUD builder
- Name it
Business Unit - Switch to Raw Schema and paste included schema below
- Switch to Editor
- Mark
coordinatesas `required`` - Mark
idasRead only - Push
Createbutton - See Editor in
Models -> Business Unit Commonhascoordinatesas expected. - See
Models -> Business Unit Input -> Objecthas another falsecoordinates. (It shouldn't be there) - See
Models -> Business Unit Basic Output -> Objecthas another falsecoordinates. (It shouldn't be there)
{
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"maxLength": 50,
"description": "Name of the business unit.",
"faker": "company.companyName"
},
"coordinates": {
"type": "object",
"description": "Geographic coordinates of the business unit.",
"additionalProperties": false,
"required": ["x", "y"],
"properties": {
"x": {
"type": "number",
"description": "Longitude of the coordinates.",
"faker": "address.longitude"
},
"y": {
"type": "number",
"description": "Latitude of the coordinates.",
"faker": "address.longitude"
}
}
},
"wifiDetails": {
"type": "string",
"description": "Details about wifi usage, password etc.",
"maxLength": 1000
}
}
}