Skip to content

[Schema Inaccuracy] components.schemas.code-scanning-alert-instances schema is correct #62

Closed
@gr2m

Description

@gr2m

Schema Inaccuracy

A "type": "array" requires "items", which in turn can be of type "object" with the "properties" key

      "code-scanning-alert-instances": {
        "nullable": true,
        "type": "array",
        "properties": {
          "ref": {
            "$ref": "#/components/schemas/code-scanning-alert-ref"
          },
          "analysis_key": {
            "$ref": "#/components/schemas/code-scanning-analysis-analysis-key"
          },
          "environment": {
            "$ref": "#/components/schemas/code-scanning-alert-environment"
          },
          "matrix_vars": {
            "nullable": true,
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/code-scanning-alert-state"
          }
        }
      },

Expected

      "code-scanning-alert-instances": {
        "nullable": true,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "ref": {
              "$ref": "#/components/schemas/code-scanning-alert-ref"
            },
            "analysis_key": {
              "$ref": "#/components/schemas/code-scanning-analysis-analysis-key"
            },
            "environment": {
              "$ref": "#/components/schemas/code-scanning-alert-environment"
            },
            "matrix_vars": {
              "nullable": true,
              "type": "string"
            },
            "state": {
              "$ref": "#/components/schemas/code-scanning-alert-state"
            }
          }
        }
      },

Reproduction Steps

n/a

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