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
$client->getV1Accounts(); // Exception `int` provided but `float` is expected.$client->getV1Accounts(queryParameters: ['page'=> 0.0, ''pageSize' => 20.0]); // Works fine.
Possible Solution
Allow to use int in case of number and then cast it.
Additional context
According to OpenAPI specification [1] OpenAPI has two numeric types, number and integer, where number includes both integer and floating-point numbers.
Jane version(s) affected:
7.5
using open-api-2Description
Given following path in OpenAPI 2.0 schema:
Result
Using the client results in bad DX:
Possible Solution
Allow to use
int
in case ofnumber
and then cast it.Additional context
According to OpenAPI specification [1]
OpenAPI has two numeric types, number and integer, where number includes both integer and floating-point numbers.
The text was updated successfully, but these errors were encountered: