Skip to content

[Bug]: Symfony 7.3 - array items type is absent #2508

@p-golovin

Description

@p-golovin

Version

5.3.0

Description

Symfony 7.2.6:

          "ids": {
            "description": "IDs of events",
            "type": "array",
            "items": {
              "type": "integer"
            },
            "default": []
          }
...
          "referees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RefereeDTO"
            }
          },

Symfony 7.3.0 (with type_info: false)

            "schema": {
              "description": "IDs of events",
              "type": "array",
              "items": {},
              "default": []
            }
...
          "referees": {
            "type": "array",
            "items": {}
          },

Symfony 7.3.0 (with type_info: true)

            "schema": {
              "description": "IDs of events",
              "default": [],
              "oneOf": [
                {
                  "type": "array",
                  "items": {
                    "nullable": true
                  }
                },
                {
                  "type": "object",
                  "additionalProperties": {
                    "nullable": true
                  }
                }
...
          "referees": {
            "oneOf": [
              {
                "type": "array",
                "items": {
                  "nullable": true
                }
              },
              {
                "type": "object",
                "additionalProperties": {
                  "nullable": true
                }
              }

JSON OpenApi

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions