Skip to content

Document composition function required schemas #1040

Closed

Description

@negz

What's Missing?

Crossplane 2.2 adds support for composition functions to request OpenAPI schemas.

Functions sometimes need OpenAPI schemas for resource kinds - for example to validate resources, generate resources with correct field types, or build schema-aware tooling. Since functions can't assume network access per the function specification, they have no way to fetch schemas directly.

This feature extends the existing required resources pattern to support schemas. Functions return requirements.schemas specifying GVKs they need, and Crossplane populates required_schemas on the next request. If a schema isn't found, Crossplane returns an empty Schema{} to indicate it tried, matching the pattern used for required resources.

See crossplane/crossplane#7022 for details.

Activity

  1. self-assigned this
    on Jan 17, 2026
  2. added 2 commits that reference this issue on Feb 23, 2026
    49c2d7c
    c755c14
  3. moved this from Backlog to In Review in Crossplane Roadmapon Mar 5, 2026
  4. added a commit that references this issue on May 24, 2026
    e0a1722
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions