Repository navigation
Removes deprecated Zone Settings list and corrects coverage - #71
Merged
Merged
Conversation
The `GET /zones/{}/settings` endpoint for listing all zone settings was deprecated by Cloudflare and has no replacement. This change removes its wrapper from the client.
Additionally, a utility function `withoutComments` is introduced to accurately parse endpoint source code, preventing example HTTP requests found in docblocks from being mistakenly included in the API coverage count. This improves the accuracy of the reported coverage metrics.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the
Zones/Settings::listoperation, as Cloudflare deprecated its corresponding API endpoint without providing a replacement. Users needing this functionality can still issue direct HTTP requests.Introduces a new utility that strips comments from PHP source files before calculating API coverage. This prevents example requests written in docblocks from being mistakenly counted as implemented operations, ensuring more accurate coverage metrics.
Updates API coverage documentation to reflect these changes, showing a refined count of implemented operations.