-
Notifications
You must be signed in to change notification settings - Fork 393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add helper functions to validate and get an epJSON object and field value #7632
Comments
And for autosized fields returning -99999 would also be helpful in reducing the GetInput code.
|
Anyone up for tackling this one? |
This would be really great to get fixed. I'd say @mbadams5 is the most suitable person for handling all the corner cases, but I'm not sure about availability. I can try to hack something up if no one else can. |
As highlighted here in 8250, it seems that a function to validate that an object type exists within the epJSON schema would be useful and should be a standard piece of every getinput function. |
Closed via #8738 |
Issue overview
A couple of common patterns for input processing functions that are accessing epJSON data directly are:
That's a lot of work to repeat just to get an input field value or it's default.
Also, as evidenced by #7624 a simple typo in the field name reference can result in an input field being missed, because there's no validation that the requested field is a valid field name for the object.
So, it would be useful to have an input processor function that
cCurrentObjectItem
(object class name) as an argument.For a field where you simply want to get the value or the default and move on, the goal would be something like:
Details
Some additional details for this issue (if relevant):
Checklist
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
The text was updated successfully, but these errors were encountered: