Actions
Feature #3026
openEnable apipie API parameter validation
Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
Currently we have apipie's built in parameter validation disabled in config/initializers/apipie.rb:
Apipie.configure do |config| config.validate = false end
I think - if our documentation is accurate - then this might be useful.
Updated by Dominic Cleal about 11 years ago
It turns out there's some history to this:
https://github.com/theforeman/foreman/commit/5d78633efd6fb9751da1e2776313c0faf22e3978
It makes sense to rely on AR when we're working directly with AR objects and updating their attributes, but the instance I'm looking at is in the report import action, which uses the parameters more directly, so we miss the validation.
Updated by Marek Hulán over 6 years ago
- Related to Feature #22285: Present error message when passing integer when array expected for API call added
Actions