feat(acf): generate acf fields on openapi file#84
Merged
moon0326 merged 1 commit intomoon0326:mainfrom Oct 23, 2025
TotomInc:feat/acf-support
Merged
feat(acf): generate acf fields on openapi file#84moon0326 merged 1 commit intomoon0326:mainfrom TotomInc:feat/acf-support
moon0326 merged 1 commit intomoon0326:mainfrom
TotomInc:feat/acf-support
Conversation
Owner
|
Thank you so much @TotomInc This is looking great! I'll review it tomorrow 👍 |
moon0326
approved these changes
Oct 23, 2025
Owner
moon0326
left a comment
There was a problem hiding this comment.
LGTM! Thank you! This is nice :)
Contributor
Author
|
Amazing, feel free to merge it as I cannot. 🙂 |
Owner
|
Thanks! Merged @TotomInc I’ll release a new version very soon! Thanks for this feature again. |
Owner
|
@TotomInc This has been released with 1.0.25 I've also made a small change. ACF integration is an optional feature and it can be turned on/off under Settings -> WP OpenAPI |
Closed
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.

This PR adds support for Advanced Custom Fields (ACF) in the generated OpenAPI specification, making ACF fields discoverable and properly typed in the API documentation.
It makes it significantly easier to work with ACF fields through the REST API, especially when using typed API clients or automated code generation tools.
The integration fetches ACF schema information directly from WordPress REST API OPTIONS requests and merges it into the OpenAPI specification. This means:
acfproperty of resourcesopenapi-typescriptandopenapi-fetch) can create proper types for ACF fieldsAbout the technical changes:
AddACFSchemafilter class to handle schema augmentationOperationclass to support ACF schema in request bodies