Skip to content

Commit

Permalink
feat(type): Support numeric
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Dec 30, 2023
1 parent 25ea366 commit 92c24a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OpenApiType.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ private static function resolveIdentifier(string $context, array $definitions, s
"negative-int" => new OpenApiType(type: "integer", format: "int64", maximum: -1),
"non-positive-int" => new OpenApiType(type: "integer", format: "int64", maximum: 0),
"bool", "boolean", "true", "false" => new OpenApiType(type: "boolean"),
"numeric" => new OpenApiType(type: "number"),
"double" => new OpenApiType(type: "number", format: "double"),
"float" => new OpenApiType(type: "number", format: "float"),
"mixed", "empty", "array" => new OpenApiType(type: "object"),
Expand Down

0 comments on commit 92c24a0

Please sign in to comment.