Closed
Description
Schema Inaccuracy
When fetching the combined statuses for a commit, the details are provided through a statuses
property defined as:
"statuses": {
"type": "array",
"items": {
"$ref": "#/components/schemas/simple-commit-status"
}
},
simple-commit-status
has all the fields marked as required and
"target_url": {
"type": "string",
"format": "uri"
},
status
combines this issue with also claiming the "description"
is required and non-nullable:
"description": {
"type": "string"
},
"target_url": {
"type": "string"
},
Both are incorrect, when resp. fetching and creating a status with description
and target_url
left out, both fields are null
in the responses.
Expected
That the schema matches the observed results.
Reproduction Steps
- create a status without providing either
description
ortarget_url
- observe that the successful response has
"description": null
and"target_url": null
- fetch the combined status for the commint
- observe that the corresponding simple-status has
"description": null
and"target_url": null
Related: #698 (the two components are redundant, and simple-commit-status
is no simpler than status
)
Metadata
Metadata
Assignees
Labels
No labels