Skip to content

Array of nullable strings generates wrong annotationΒ #109

@vsouz4

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;
}

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