Skip to content

Array of nullable strings generates wrong annotation #109

Description

@vsouz4

the spec:

    SomeObject:
      type: object
      required:
        - someList
      properties:
        someList:
          type: array
          items:
            $ref: '#/components/schemas/SomeNullableString'
...
    SomeNullableString:
      type: string
      nullable: true

generates code like:

/**
  * @return string|null[]
  */
public function getSomeList(): array
{
    return $this->someList;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions