Skip to content

[Schema Inaccuracy] Min-Items part of String, but should be array #3926

@hfhbd

Description

@hfhbd

Schema Inaccuracy

/user/emails/delete and /user/emails/post both contains:

"properties": {
  "emails": {
    "description": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
    "type": "array",
    "items": {
      "type": "string",
      "example": "[email protected]",
      "minItems": 1
     },
     "example": []
  }
}

Expected

The minItems should be part of the array, not the string.

"properties": {
  "emails": {
    "description": "Adds one or more email addresses to your GitHub account. Must contain at least one email address. **Note:** Alternatively, you can pass a single email address or an `array` of emails addresses directly, but we recommend that you pass an object using the `emails` key.",
    "type": "array",
    "items": {
      "type": "string",
      "example": "[email protected]"
     },
     "minItems": 1
     "example": []
  }
}

Reproduction Steps

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions