I have…
- [x ] Checked the logs and have uploaded a log file and provided a link because I found something suspicious there. Please do not post the log file in the topic because very often something important is missing.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [x] Bug report
- [ ] Performance issue
- [ ] Documentation issue or request
Current behavior
Squidex generated swagger file for components includes schemaId
..
"FaqComponentDto": {
"type": "object",
"required": [
"schemaId" <----- this?
],
"properties": {
"question": {
"type": "string",
"nullable": true
},
"answer": {
"type": "string",
"nullable": true
},
"priority": {
"type": "number",
"nullable": true
},
"schemaId": { <----- this?
"type": "string",
"nullable": false
}
}
},
..
And we are currently use NSwag
to generate sdk and when we use this generated class tu update entity with component I got a error.
{
"message": "Validation error",
"traceId": "00-35ab62f31f7abf4f83d3536489bb9805-97781e7e8ca9ea44-00",
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"details": ["weatherData.iv: Invalid component. No 'schemaId' field found."],
"statusCode": 400
}
Expected behavior
Client generated from swagger should work.
Minimal reproduction of the problem
Scheme with component (in our tested use-case it is nested-component if that matter). Generate SDK from swagger (nswag). Call update on any item via this API.
Same update is work via front-end admin.
Environment
- [x] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [ ] Cloud version
Version: 5.8.2