We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenApiSpex.Schema.cast and OpenApiSpex.cast_value return different results when casting 1
OpenApiSpex.Schema.cast
OpenApiSpex.cast_value
1
iex> float_schema = %OpenApiSpex.Schema{type: :number, format: :float} %OpenApiSpex.Schema%{type: :number, format: :float} iex> OpenApiSpex.Schema.cast(float_schema, 1, %{}) {:ok, 1.0} iex> OpenApiSpex.cast_value(1, float_schema) {:ok, 1}
The correct response should be {:ok, 1.0} for OpenApiSpex.cast_value(1, float_schema)
{:ok, 1.0}
OpenApiSpex.cast_value(1, float_schema)
This is a simlar issue to: #84
The text was updated successfully, but these errors were encountered:
Fixed in #611, thanks @David-Klemenc
Sorry, something went wrong.
No branches or pull requests
OpenApiSpex.Schema.cast
andOpenApiSpex.cast_value
return different results when casting1
The correct response should be
{:ok, 1.0}
forOpenApiSpex.cast_value(1, float_schema)
This is a simlar issue to: #84
The text was updated successfully, but these errors were encountered: