Skip to content

feat(providers): add Providers catalog with nested region/size resources#17

Merged
fbarrento merged 1 commit into
mainfrom
feat/4-providers
May 15, 2026
Merged

feat(providers): add Providers catalog with nested region/size resources#17
fbarrento merged 1 commit into
mainfrom
feat/4-providers

Conversation

@fbarrento
Copy link
Copy Markdown
Contributor

Summary

  • Read-only Providers catalog: list/get providers, their regions, and their sizes (region-scoped and provider-scoped).
  • Introduces a shared ParsesPage trait — also adopted by OrganizationsResource.
  • Adds a Provider slug enum for client code that wants a symbolic name. DTOs keep slug as 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.
  • Fixtures recorded against live Forge API via FORGE_RECORD_FIXTURES=1 vendor/bin/pest.

🤖 Generated with Claude Code

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 fbarrento self-assigned this May 15, 2026
@fbarrento fbarrento merged commit a7fff25 into main May 15, 2026
26 checks passed
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>
@fbarrento fbarrento mentioned this pull request May 24, 2026
2 tasks
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.

Providers catalog (read-only)

1 participant