-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Correct way to create a fix
that always runs?
#153
Comments
Hey @rubberduck203 , thanks for reporting this. There's definitely a mismatch between the docs and the implementation here. The typing around the core data type implies the check is required, but I think we should relax the typing here to make check optional. Out of curiosity, what kind of fix are you trying to run all the time? Are there more you foresee? Wondering if there's an alternative path here. |
I initially wanted to run I eventually implemented an appropriate check but, to be honest, I'm still not entirely sure it was worth the effort. I don't have other examples off the top of my head, but I think the use case is:
|
Just noting this for later. scope/scope/src/shared/models/internal/doctor_group.rs Lines 15 to 21 in 851ec56
And then, obviously, dealing with the fact that it's optional everywhere it's used. |
According to the documentation
https://oscope-dev.github.io/scope/docs/models/ScopeDoctorGroup#actions
but creating an action without a
check
results in a schema validation failureI tried various other ways of not specifying a check as well.
WARN Resource 'ScopeDoctorGroup/mvce' didn't match the schema for ScopeDoctorGroup. null is not of type "object"
Which led me to this config, which does work as expected.
It feels like either
check
shouldn't be required or the documentation needs to be updated.The text was updated successfully, but these errors were encountered: