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

API ioMapping ignores typos, should error instead #29

Open
DDR0 opened this issue Aug 16, 2019 · 0 comments
Open

API ioMapping ignores typos, should error instead #29

DDR0 opened this issue Aug 16, 2019 · 0 comments
Assignees
Labels
design shortcoming This should work differently than it does.

Comments

@DDR0
Copy link
Contributor

DDR0 commented Aug 16, 2019

Example:

cam-json -n set - <<< '{"ioMapping": {"io1": {"threshold": "1.5"}}}'

Expected Behaviour:
io1 is set to a trigger threshold of one-and-a-half volts.

Actual Behaviour:
io1 is not touched, nor is any error raised

The Actual Problem:
It is bleedingly hard to find the typo, sometimes. Unused keys should raise a warning, at least, and preferably an error. This makes the API much easier to use.

@DDR0 DDR0 added the design shortcoming This should work differently than it does. label Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design shortcoming This should work differently than it does.
Projects
None yet
Development

No branches or pull requests

2 participants