Festo-se / cyclonedx-editor-validator

Tool for creating, modifying and validating CycloneDX SBOMs.
https://festo-se.github.io/cyclonedx-editor-validator/
GNU General Public License v3.0
18 stars 4 forks source link

Filename validation happens with default schema #150

Closed mmarseu closed 3 months ago

mmarseu commented 5 months ago

Is it intentional behavior that the validate command validates the filename even when using the default schema? It seems counterintuitive, since this is a very special requirement that we probably shouldn't impose on every user of the tool.

I know filename validation can be "disabled" manually in a sense by providing a catch-all regex (i.e., .*) to the --filename-pattern option but IMO the default behavior should be either:

italvi commented 4 months ago

I know, it is only a recommendation, but we do allow bom.json per default and imho we should at least try to set a standard.

However, your second suggestion works for me as well, as always using bom.json is ambiguous.

mmarseu commented 4 months ago

However, your second suggestion works for me as well, as always using bom.json is ambiguous.

Alright, I'll take care of it.