hiltontj / serde_json_path

Query serde_json Values with JSONPath
https://serdejsonpath.live/
MIT License
50 stars 3 forks source link

Emit warnings in `#[function]` macro expansion when invalid arguments used #73

Open hiltontj opened 8 months ago

hiltontj commented 8 months ago

This is a follow on for #69 to cover the one TODO that was not cleaned up by #72.

The TODO can be found here: https://github.com/hiltontj/serde_json_path/blob/5dd145d671f8357344f4a52013a3063d46e0e9f1/serde_json_path_macros/src/internal/func/args.rs#L10-L30

I believe that if unsupported arguments are passed to the #[function] macro, it will just ignore them, but should instead emit compiler warnings.