Hi there, I wonder does Apidog support dictionaries in schemas.
When I try this in the errors object appears empty.
Thanks in advance
I would like to be able to support schemas like this
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"type": {
"type": "string",
"format": "uri"
},
"title": {
"type": "string"
},
"status": {
"type": "integer"
},
"detail": {
"type": "string"
},
"instance": {
"type": "string",
"format": "uri"
},
"errors": {
"type": "object",
"propertyNames": {
"pattern": "^[A-Za-z][A-Za-z0-9]*$"
},
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"messageType": {
"type": "string",
"format": "uri"
},
"messageDetail": {
"type": "string"
}
},
"required": [
"messageType",
"messageDetail"
],
"additionalProperties": false
}
},
"default": {}
}
},
"required": [
"type",
"title",
"status",
"detail",
"instance"
],
"additionalProperties": false
}```
so that I can have responses like this
```json
{
"type": "https://errors.juriba.com/validation/invalid-field",
"title": "Unprocessable Content",
"status": 422,
"detail": "The request was well-formed but was unable to be processed.",
"instance": "http://example.com/errors/0HMN4A3D00000001",
"errors": {
"fieldA": [
{
"messageType": "http://example.com/message/invalidFormat",
"messageDetail": "The format of Field A is invalid."
}
],
"fieldB": [
{
"messageType": "http://example.com/message/invalidFormat",
"messageDetail": "The format of Field B is invalid."
}
]
}
}