Automattic / Automattic/wordpress-rs

Move `SparseField` implementations out of `endpoint` module

Open
#184 0 comments 0 reactions 1 assignee Claimed by @oguzkocer View on GitHub
Rust
Dominant language
Rust
Stars
36
Forks
5
Avg merge
17h 30m
Merged PRs (30d)
43

Description

`SparseField` implementations should be part of each individual type, as they are not related to endpoints.

* Move `wp_api::endpoint::macros::default_sparse_field_implementation_from_field_name!` to root level
* Move the callers of this macros out of `endpoint` module and into their relative modules. For example, out of `users_endpoint` module and into `users` module.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.