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

BindVars silently drops body keys when not existent in abstractSql resource #111

Open
fisehara opened this issue Jan 31, 2023 · 0 comments

Comments

@fisehara
Copy link
Contributor

BindVars silently drops body keys that are not existent in abstractSql resource propertyMapping.
This leads to a silent acceptance of a wrong send body.

To be discussed if this should drop / throw an error to report back to the API user that the body is misaligned to the model definition.
Argument for not silently dropping but error respond to the API caller:

  • Caller gets aware of unnecessary properties send in the body (reduce bandwith of dropped data)
  • Caller get aware of, that the model does NOT support the sent data and can discuss the data model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant