Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

output_schema is returned incompletely by /feature information endpoints. #89

@calvinalkan

Description

@calvinalkan

Both:

  • /wp-json/wp/v2/feature, and
  • /wp-json/wp/v2/feature/<id>,

return only a superficial output_schema.

It looks like only one-level deep of object properties is considered.

Tool definition:

'output_schema' => [
                'type' => 'object',
                'properties' => [
                    'id' => [
                        'type' => 'integer',
                        'description' => 'The ID of the post to delete.',
                    ],
                    'force' => [
                        'type' => 'boolean',
                        'default' => false,
                        'description' => 'Whether to force the deletion of the post and bypass trash',
                    ],
                ],
                'required' => ['id'],
            ],

Output:

Image

I'm not really sure where this transformation happens, but the defined schema is not returned as is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions