ansible-schema-generator icon indicating copy to clipboard operation
ansible-schema-generator copied to clipboard

Make the compound schema a JSON definition

Open shaded-enmity opened this issue 6 years ago • 1 comments

Currently only the common "generic" types like number, truth etc are handled using definitions.

To enable using the schemas in a context of tasks embedded into roles and playbooks we should make the main schema a definition as well that we can further reference from sub schemas.

shaded-enmity avatar Oct 12 '18 10:10 shaded-enmity

I didn't had time to check how Ansible schema looks but based on my brief experience with other schemas this is something I was expecting.

For example, the "block" element is allowed as a task but it can contain other tasks and nobody sane is expected to define what is acceptable as a task twice :)

ssbarnea avatar Oct 19 '18 12:10 ssbarnea