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

Improvements to filtering and handling of non-patchable keys in Virtual Service #1526

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

StarKhan6368
Copy link
Collaborator

What: Improvements to filtering and handling of non-patchable keys in Virtual Service

How:

  • On any attempts made to patch a non-patchable key with a new value, the server will respond with a 4xx response and will not silently ignore the value being patched.
  • The values in attribute filtering are now being validated against their corresponding keys in the response schemas.
  • Attribute filtering is now possible on extensible keys, which are not defined in the spec but present in examples when extensible schema is enabled.

Checklist:

- When a non-patchable key is being patched with a new value VS should
  return a 422 error response or fallback to 400
- The value being filtered on will be validated based on the
  response pattern for the key being filtered.
- Validate against all key patterns from all patterns of an AnyPattern
  instead of just choosing the first one that has the key.
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

Successfully merging this pull request may close these issues.

1 participant