Skip to content

Conversation

@Jkhall81
Copy link
Contributor

Summary
This PR adds support for argument_specs within meta/main.yml, allowing role argument validation to be defined directly in the main metadata file. It links the metadata schema to the existing entry_point definition to ensure consistent validation of argument types and descriptions.

Fixes #4762

@Jkhall81 Jkhall81 force-pushed the fix/4762-schema-missing-specs branch from dd00952 to 463114b Compare December 31, 2025 15:07
@github-actions github-actions bot added fix and removed fix labels Dec 31, 2025
@Jkhall81
Copy link
Contributor Author

I fixed a MissingRefError in the CI by updaing schema.spec.ts to a two-pass loader. This ensures all local schemas are registered in the Ajv cache before compilation, resolving the race condition between meta.json and role-arg-spec.json. I also added a type cast and linter ignore to handle custom schema properties (examples, x-ansible-lint) that sit outside the standard TypeScript AnySchema definition.

@ssbarnea ssbarnea enabled auto-merge (squash) January 5, 2026 18:36
@github-actions github-actions bot added fix and removed fix labels Jan 5, 2026
@alisonlhart alisonlhart disabled auto-merge January 5, 2026 21:32
@alisonlhart alisonlhart merged commit effc677 into ansible:main Jan 5, 2026
22 checks passed
@github-project-automation github-project-automation bot moved this from Review to Done in 🧰 devtools project board Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

/meta/main.yml schema does not contain role argument_spec details

3 participants