-
Notifications
You must be signed in to change notification settings - Fork 6
Labels
enhancementNew feature or requestNew feature or request
Description
Hello,
I have an endpoint where the root element is a list, and the generator is always giving me an empty body without possibility to edit it via the data mapping (or maybe there is one that I haven't found?)
{
"requestBody": {
"content": {
"application/json": {
"schema": {
"example": [
{
"attribute": "City",
"values": [
"New York",
"London"
]
},
{
"attribute": "Type",
"values": [
"Restaurant",
"Hotel"
]
}
],
"items": {
"description": "An individual instruction on how to manipulate the object.",
"properties": {
"attribute": {
"description": "Identification of a target attribute",
"example": "Attitudes",
"type": "string"
},
"values": {
"description": "An array of values to be used with given attribute",
"example": [
"Friendly",
"Outgoing"
],
"items": {},
"type": "array"
}
},
"required": [
"attribute"
]
},
"type": "array"
}
}
}
}
}The library is sending an empty body, and there is nothing I can do with data mapping as PropertyValueConstraint requires a property_name, which does not exist for lists.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request