Closed afbjorklund closed 7 months ago
the keywords you added are not part of jsonschema specification. So adding It to default compiler and validation is not suggested. You can create custom Extension to handle these kind of behaviour.
you can follow the example: https://github.com/santhosh-tekuri/jsonschema/blob/master/example_extension_test.go
These are used by the cloud-init schema for cloud-config
https://raw.githubusercontent.com/canonical/cloud-init/main/cloudinit/config/schemas/schema-cloud-config-v1.json
Example result, when validating with those annotations: