Structural error at definitions.User.properties.deviceid should be object Jump to line…
- User
Structural error at definitions.User.properties.device_id should be object Jump to line 1120
device_id: UserID в OneSignal service
Structural error at definitions.User.properties.device_id should be object Jump to line 1120
device_id: UserID в OneSignal service
- Assistant
It looks like you're encountering a structural error in a schema definition, presumably in JSON Schema or OpenAPI, where the
device_idproperty under theUserdefinition is expected to be an object rather than a simple string or other data type that you currently have.Given the error message, here's how you might correct it:
Example of JSON Schema Correction
If your current definition looks like this:
{ "User": { "type": "object", "properties": { "device_id": { "type": "string" } } } }You need to change the
device_iddefinition from astringto anobject. For instance: