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

Add support for Get/Update API Shield Schema Validation Settings #1418

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

djhworld
Copy link
Contributor

@djhworld djhworld commented Oct 9, 2023

This change adds support for the following API Shield related endpoints related to API Shield Schema Validation Settings:

Description

Has your change been tested?

  • Unit tests
  • Local testing

Screenshots (if appropriate):

Types of changes

What sort of change does your code introduce/modify?

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • This change is using publicly documented in cloudflare/api-schemas
    and relies on stable APIs.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2023

changelog detected ✅

@djhworld djhworld marked this pull request as ready for review October 10, 2023 16:30
// 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) {
Copy link
Member

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?

Copy link
Contributor Author

@djhworld djhworld Oct 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…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
@jacobbednarz jacobbednarz merged commit d1abe1b into cloudflare:master Oct 13, 2023
11 checks passed
@jacobbednarz
Copy link
Member

wicked effort! thanks @djhworld 👏

@github-actions
Copy link
Contributor

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!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants