goose icon indicating copy to clipboard operation
goose copied to clipboard

Intelligent Args Validation

Open olttwa opened this issue 2 years ago • 0 comments

Issues

Args validation just checks if it is edn serializable. edn serializes anonymous & symbolized functions too, which isn't supported by Goose as they cannot be stored somewhere and retrieved in a different JVM.

Possible solutions:

Try them out, they aren't tested at time of writing

  • Check if parents of said object are serializable?
  • Define an exhaustive list of allowed types and validate against them
    • Refer https://github.com/ptaoussanis/nippy for the exhaustive list
    • Refer Sidekiq best practices on job params

olttwa avatar May 09 '22 05:05 olttwa