mozilla-ai / lumigator

Source code for Mozilla.ai's Lumigator platform
https://mozilla-ai.github.io/lumigator/
Apache License 2.0
63 stars 7 forks source link

Check that extra params in job creation are forbidden #396

Open javiermtorres opened 3 days ago

javiermtorres commented 3 days ago

What's changing

The extra=forbid model config param is passed to all OpenAPI-related models in the schema. This will prevent additional keys from being passed when creating a model object from JSON data.

How to test it

Just run auto tests; no manual testing is needed.

Additional notes for reviewers

Fixes https://github.com/mozilla-ai/lumigator/issues/393

I already...