-
Notifications
You must be signed in to change notification settings - Fork 597
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 support for Get/Update API Shield Schema Validation Settings #1418
Conversation
changelog detected ✅ |
ce2b27f
to
0d0a92a
Compare
api_shield_schemas.go
Outdated
// UpdateAllAPIShieldSchemaValidationSettings updates zone level schema validation settings | ||
// | ||
// API documentation: https://developers.cloudflare.com/api/operations/api-shield-schema-validation-update-zone-level-settings | ||
func (api *API) UpdateAllAPIShieldSchemaValidationSettings(ctx context.Context, rc *ResourceContainer, params UpdateAllAPIShieldSchemaValidationSettingsParams) (*APIShieldSchemaValidationSettings, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the way we would generally handle this is that we wouldn't include this method if the individual fields update endpoint was available (such as UpdateAPIShieldSchemaValidationSettings
). we would opt to instead use the one method to update a single or all of the fields. does that make sense to do in this context?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense! Have removed this in favour of the PATCH endpoint.
…ettings This change adds support for the following API Shield related endpoints related to API Shield Schema Validation Settings: - Retrieve API Shield Schema Validation Settings - Update All API Shield Schema Validation Settings - Update API Shield Schema Validation Settings
0d0a92a
to
c52383a
Compare
wicked effort! thanks @djhworld 👏 |
This functionality has been released in v0.80.0. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
This change adds support for the following API Shield related endpoints related to API Shield Schema Validation Settings:
Description
Has your change been tested?
Screenshots (if appropriate):
Types of changes
What sort of change does your code introduce/modify?
Checklist:
and relies on stable APIs.