Closed provokateurin closed 10 months ago
Conflicting files src/OpenApiType.php
Fixed
The problem is that query parameters are always interpreted as true unless the value is 0. So we need to map them as integers :/
Added tests in https://github.com/nextcloud/openapi-extractor/pull/59
The problem is that query parameters are always interpreted as true unless the value is 0.
But not when you POST a JSON body, but it will work in both cases anyway, so okay
Yes with a json post body boolean works fine, but not with the query parameters as we use them here.
For query parameters we have to convert booleans into integers as they are only accepted that way. This sets the
enum
field on the returned integer schema to indicate that these are the only possible values. Can be tested in the server.