However, after I tried it locally with igluctl 0.7.1, it’s giving me an error: Configuration is invalid: InvalidData
which does not indicate which part of the configuration contain invalid data. Here is what I used:
@ablimit, I suspect the issue is with the location of your JSON schemas. You specified it as “file://tmp/schemas”. I would assume Igluctl cannot locate your schemas and hence the error “Configuration is invalid: InvalidData”. If I’m not mistaken the input should contain the (absolute or relative) path to your local JSON schema repository (no need for file:// prefix either).
@ihor Thanks for helping out. I don’t think that’s the case. I tried several variations (relative path, absolute path, and with URI prefix). They are all giving the same error message.
@ablimit, what is the local path to your JSON schemas (including the folders after the “root” folder schemas)? How does your JSON schema(s) look like? Have you tried to run just lint command on its own (not as part of static deploy)?
Mentioning just in case, the JSON schemas are expected to be located in the path schemas/<vendor>/<name>/jsonschema/<version>, where <version> is the actual name of the file (not the name of the folder). Thus, when running lint it could look like
Sorry for the very late response. The problem is that you use $schema keyword, while it should be just schema as in any other self-describing JSON. description also seems redundant.