Open technicalpickles opened 7 months ago
I don't think that erroring is correct, because you may a future version of the model, and wouldn't be able to run because a new (valid) field isn't known yet.
I think what you're getting at is a lint
or validate
step that would give you the information you're looking for. Then you could add it to CI and ensure that your resources are valid.
@technicalpickles something that might help your experience here is configuring IDE based YAML schema validation against https://raw.githubusercontent.com/oscope-dev/scope/main/scope/schema/merged.json
. For Gusto's repo, I have this config committed, but only for VS Code.
Given this config:
I get a warning that it doesn't match the schema, and it reports as successfully:
This sends some mixed messaging. The succeeded language suggests it is run despite it matching the schema.
I think as someone writing and implementing scope checks, I'd want to see this be an error and not run anything else.
Some things I think I'd want to see when that happens: