Closed peillis closed 3 years ago
Ah, yeah that is no good. If you want to try this out and PR it if it resolves the issue, I'd be grateful: https://github.com/ash-project/ash_json_api/blob/master/lib/ash_json_api/json_schema/json_schema.ex#L325
We can change those "type" => "integer"
Something like this:
%{
"type" => ["integer", "string"],
"match" => "^[1-9][0-9]*$"
}
And for boolean
%{
"type" => ["boolean", "string"]
"match" => "^(true|false)$"
}
THat might not be exactly right, but it is the gist of it.
Yeah, it works. I already did the PR. Thank you!
Awesome, thanks for the report and for contributing the fix!
Consider for example an url like
/device_screens?filter[screen_id]=12
, it gives the following error: