Open bk2zsto opened 1 year ago
I think your problem is that validate does not reference some shared directory to build a schema store for referring to or use a referring approach like you did.
You basically want a new feature to pass a referring schema file or a schema directory.
I gave up on this all and just created a module with jsonschema and jinja template rendering.
SUMMARY
The default RefResolver in jsonschema correctly loads references that the validate module does not
ISSUE TYPE
COMPONENT NAME
ansible.utils.validate
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Fedora Remix 37 on WSL
STEPS TO REPRODUCE
https://gist.github.com/bk2zsto/f9df69ed86a5b0558b103bfaab3a63d1
EXPECTED RESULTS
validate loads external references and/or errors when they are not resolved
ACTUAL RESULTS
validate ignores external references