File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ private function load(string $fqcn): ?OpenApiType {
7676
7777 return new OpenApiType (
7878 context: $ path ,
79- type: $ node ->scalarType ->name === 'int ' ? 'integer ' : 'string ' ,
80- format: $ node ->scalarType ->name === 'int ' ? 'int64 ' : null ,
79+ type: $ node ->scalarType ->name === 'int ' || $ node -> scalarType -> name === ' integer ' ? 'integer ' : 'string ' ,
80+ format: $ node ->scalarType ->name === 'int ' || $ node -> scalarType -> name === ' integer ' ? 'int64 ' : null ,
8181 description: $ description ,
8282 enum: $ values ,
8383 );
Original file line number Diff line number Diff line change 1515 * Declared in a sub-namespace/sub-directory to confirm that enums are resolved
1616 * by mapping their namespace to a file path instead of relying on a directory scan.
1717 */
18- enum NotificationPriority: int {
18+ enum NotificationPriority: integer {
1919 case Low = 0 ;
2020 case Normal = 1 ;
2121 case High = 2 ;
You can’t perform that action at this time.
0 commit comments