Skip to content

Change DerivedRequest::namespace() to an instance method#1290

Merged
oguzkocer merged 1 commit intotrunkfrom
per-variant-namespace
Apr 20, 2026
Merged

Change DerivedRequest::namespace() to an instance method#1290
oguzkocer merged 1 commit intotrunkfrom
per-variant-namespace

Conversation

@oguzkocer
Copy link
Copy Markdown
Contributor

Allow individual enum variants to return different API namespaces by taking &self, enabling endpoints like /domains/{name}/is-available/ (v1.3) to coexist with v1.1 endpoints in the same request enum.

Allow individual enum variants to return different API namespaces
by taking `&self`, enabling endpoints like `/domains/{name}/is-available/`
(v1.3) to coexist with v1.1 endpoints in the same request enum.
@oguzkocer oguzkocer added this to the 0.2 milestone Apr 18, 2026
@oguzkocer oguzkocer added the Rust label Apr 18, 2026
@wpmobilebot
Copy link
Copy Markdown
Collaborator

XCFramework Build

This PR's XCFramework is available for testing. Add to your Package.swift:

.package(url: "https://github.com/automattic/wordpress-rs", branch: "pr-build/1290")

Built from 69fcadc

@oguzkocer oguzkocer marked this pull request as ready for review April 18, 2026 18:17
@oguzkocer oguzkocer enabled auto-merge (squash) April 18, 2026 18:17
@oguzkocer oguzkocer requested a review from jkmassel April 18, 2026 18:17
@oguzkocer oguzkocer merged commit 861f749 into trunk Apr 20, 2026
33 checks passed
@oguzkocer oguzkocer deleted the per-variant-namespace branch April 20, 2026 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants