Content
View differences
Updated by Eric Schubert over 1 year ago
### Steps to reproduce
* Comment out `lib/api/v3/custom_fields/hierarchy/get_items_parameter_contract.rb:39`
* Request from Items API \`GET {{host}}/api/v3/custom\_fields/15/items?parent=\`
### What is the buggy behavior?
result is:
```json
\`\`\`yaml
{
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
"message": "Parent
"\_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
"message": "Parent must be filled"
filled"
}
```
<br> \`\`\`
### What is the expected behavior?
_result should be (period in the end of the message):_
```json
\`\`\`yaml
{
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
"message": "Parent
"\_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
"message": "Parent must be filled."
filled."
}
```
\`\`\`
* Comment out `lib/api/v3/custom_fields/hierarchy/get_items_parameter_contract.rb:39`
* Request from Items API \`GET {{host}}/api/v3/custom\_fields/15/items?parent=\`
### What is the buggy behavior?
result is:
```json
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
"message": "Parent
"\_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
"message": "Parent
```
<br>
### What is the expected behavior?
_result should be (period in the end of the message):_
```json
"_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
"message": "Parent
"\_type": "Error",
"errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
"message": "Parent
```
\`\`\`