Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum: Items as enum string problem #2081

Closed
webspec2012 opened this issue Feb 21, 2023 · 1 comment
Closed

Enum: Items as enum string problem #2081

webspec2012 opened this issue Feb 21, 2023 · 1 comment

Comments

@webspec2012
Copy link

webspec2012 commented Feb 21, 2023

I'm trying to do the following:

#[OA\Property(type: 'array', items: new OA\Items(type: 'string', enum: ChannelAclRoleEnum::class), nullable: false)] public readonly array $roles;

The scheme is being formed:

roles:
title: "..."
type: "array"
items:
type: string
enum: "App\...\ChannelAclRoleEnum"
nullable: false

Expected:

roles:
title: "..."
type: "array"
items:
type: string
enum: ["value1", "value2", "value3"]
nullable: false

@mario-fehr
Copy link

see #2078

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants