You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enum list generation does not work from Enum::class (placed in enum, ref) for several cases in OA\Property
Cases for v.5 beta6:
attribute on class Object #[OA\Schema ... new OA\Property(... enum: EnumBacked::class) - don't generate enum list (but it works on route's property attributes) - need to work like in route's property attributes
attribute on class Object #[OA\Schema ... new OA\Property(... ref: new NAAtr\Model(type: EnumPure::class) ..) - don't generate list in ref component (but it works on backed Enum) - need list of case's names
in class on comment property by /** @var MyCustomEnumBacked::class / ( or /* @var EnumBacked::class */ ) - falls with exception " u need use @var on property ..." (but it worked on v4.36.1 and had creating componet schema properly)
in class property attribyt #[OA\Property(..., enum: EnumAnyType::class, ...) - don't work
Cases for v4.36.1:
- any variants on attribute on class(or on class property) Object #[OA\Schema ... (ref, enum): on EnumAnyType::class) - don't work
JSON OpenApi
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
upsetcode
changed the title
Enum list generation does not work from Enum::class (placed in enum, ref) for several cases
Enum list generation does not work from Enum::class (placed in enum, ref) for several cases
Feb 4, 2025
Version
v.5 beta6
Description
Enum list generation does not work from Enum::class (placed in enum, ref) for several cases in OA\Property
Cases for v.5 beta6:
Cases for v4.36.1:
- any variants on attribute on class(or on class property) Object #[OA\Schema ... (ref, enum): on EnumAnyType::class) - don't work
JSON OpenApi
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: