Open
Description
Now we are using the very same spec to validate source and built packages, but the content can be actually different. For example dev files or external fields can be found in source packages but are not expected to be on built packages. Adding two validation modes can allow us to be more strict with the content and format of built packages. It can also help on testing package build implementations like the one in elastic-package
.
We would need to:
- Expose in the
validator
package an interface to select the validation mode. - Define somehow in the spec the contents for each mode.