I have created an integration custom action.
When adding an input contract, I have created an object with sub-objects.
{
"type": "object",
"properties": {
"sendTextSms": {
"type": "object",
"properties": {
"address": {
"type": "string"
},
"senderName": {
"type": "string"
},
"codingScheme": {
"type": "number"
},
"message": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
But when I saved I got the following error message.
"Failed Validation of contract.input.inputSchema as a simple properties schema. Must be an Object with properties and no sub-objects.
JSON failed schema validation for the following reasons: Schema: # @/properties/properties/patternProperties/^[a-zA-Z][a-zA-Z0-9_-]*$/properties/type.
Error location: /properties/sendTextSms/type. instance value ("object") not found in enum (possible values: ["boolean","integer","null","number","string"])"
Is there a way to create an object with sub-objects?