oscope-dev / scope

Scoping user machines
https://oscope-dev.github.io/scope/
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

Report on fields not part of the spec #69

Closed ethankhall closed 8 months ago

ethankhall commented 8 months ago

This change is intended to report on resources that aren't correct.

In the case where a Resource has an incorrect field, we should report that the field was not set/not provided/extra value.

Now when a resource isn't valid, you'll see something like

 WARN Resource setup didn't match the schema for ScopeDoctorGroup. Additional properties are not allowed ('extra' was unexpected)

when scope is executed.

As part of this change, we're dropping support for Setup and and Check resources. We've also moved .description under .metadata provided to all resources.