feat(providers): add Providers catalog with nested region/size resources#17
Merged
Conversation
Read-only catalog: list/get providers, their regions, and their sizes (region-scoped and provider-scoped). Introduces a shared ParsesPage trait (also adopted by OrganizationsResource) and a Provider slug enum for client code that wants a symbolic name — DTOs keep slug as a plain string so unknown providers still hydrate. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
fbarrento
added a commit
that referenced
this pull request
May 19, 2026
Captures the four spec mismatches surfaced while building the Servers slice (#18 + #19) plus the open-strings-not-enums decision from the Providers slice (#16 + #17). Append future findings here so the next debugging session can find the answer without re-running live-fire investigations. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
2 tasks
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.
Summary
ParsesPagetrait — also adopted byOrganizationsResource.Providerslug enum for client code that wants a symbolic name. DTOs keepslugas a plain string so unknown providers still hydrate (Forge's OpenAPI does not declare the slug as a closed enum).Closes #4.
Test plan
composer test— pint, rector, phpstan, 158 tests / 308 assertions, 100% coverage.FORGE_RECORD_FIXTURES=1 vendor/bin/pest.🤖 Generated with Claude Code