Skip to content

[Schema Inaccuracy] status and simple-commit-status claim target_url (and description) are required #1307

Closed
@xmo-odoo

Description

@xmo-odoo

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 or target_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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions