FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

SchemaFactory fail for type @var array<string, string> · Issue #1439 · api-platform/api-platform · GitHub

/ api-platform Public template

SchemaFactory fail for type @var array<string, string> #1439

Description

API Platform version(s) affected: v1.2.1

Description
i typed a property of a resource like this

  /**
   * @var array<string, string>
   * @ORM\Column(type="json")
   * @Groups({"read", "write"})
   */
  private $answer = [];

and end up with: Class rray<string,string> does not exist
full exception here

How to reproduce
Type a property inside a ApiResource as @var array<string, string> when open Swagger or /api/docs.jsonld

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


    Back | FazBrowse Home | New Git URL