Skip to content

Validate provider metadata list entries instead of ignoring them - #71104

Draft
Lee-W wants to merge 1 commit into
apache:mainfrom
astronomer:queues-schema-items
Draft

Validate provider metadata list entries instead of ignoring them#71104
Lee-W wants to merge 1 commit into
apache:mainfrom
astronomer:queues-schema-items

Conversation

@Lee-W

@Lee-W Lee-W commented Aug 4, 2026

Copy link
Copy Markdown
Member

The items blocks for queues, plugins and task-decorators listed their field names directly under items, where they are not JSON Schema keywords, so the blocks were inert and any shape passed. A provider author following what those blocks appeared to document — a dict for queues, or a path key for a decorator — got no error and was quietly dropped by the consumers instead. Pinning each section to the shape the provider.yaml files and generated payloads actually use turns that into a failure at authoring time. The custom-provider howto named the same nonexistent path field.

#70190 (comment)


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@Lee-W Lee-W self-assigned this Aug 5, 2026
@Lee-W
Lee-W force-pushed the queues-schema-items branch from c611898 to 0af7ff4 Compare August 5, 2026 06:40
The items blocks for queues, plugins and task-decorators listed their field
names directly under items, where they are not JSON Schema keywords, so the
blocks were inert and any shape passed. A provider author following what those
blocks appeared to document — a dict for queues, or a path key for a decorator
— got no error and was quietly dropped by the consumers instead. Pinning each
section to the shape the provider.yaml files and generated payloads actually
use turns that into a failure at authoring time. The custom-provider howto
named the same nonexistent path field.

Raised in review of apache#70190.
@Lee-W
Lee-W force-pushed the queues-schema-items branch from 0af7ff4 to a509680 Compare August 5, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant