Skip to content
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

Use schema package to validate operator inputs #21

Open
robcxyz opened this issue Jul 31, 2020 · 0 comments
Open

Use schema package to validate operator inputs #21

robcxyz opened this issue Jul 31, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@robcxyz
Copy link

robcxyz commented Jul 31, 2020

Per title, use schema to validate the inputs. This would allow us to do many things.

  • Set base operator methods to extend functionality for validation
  • Set aliases properly for various parameters
  • Raise errors when input is not recognized

Validation should happen in base operator execute method and optionally call an aliasing method prior to running private _execute method. Then set validate method with different data types to trigger logic for validation and call back logic.

@robcxyz robcxyz added the enhancement New feature or request label Jul 31, 2020
@robcxyz robcxyz self-assigned this Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant