publiccode-editor icon indicating copy to clipboard operation
publiccode-editor copied to clipboard

Don't use the "Validate" button?

Open bfabio opened this issue 3 months ago • 2 comments

The editor is not strictly a validator, because sometimes it autofixes some issues:

Take for example https://github.com/italia/publiccode-parser-go/blob/main/testdata/v0/invalid/file_encoding.yml, if you load it in the editor and "validate" it doesn't tell you it's invalid.

So maybe the button should always say "Generate"?

bfabio avatar Sep 24 '25 15:09 bfabio

@bfabio I think that we adopted this solution from v1. Could you confirm that in v1 this button worked in this way?

valeriocomo avatar Sep 30 '25 12:09 valeriocomo

@valeriocomo yes, I think so.

IIRC, the old version broke down when trying to load an invalid file, instead of trying to salvage it and give the user a chance to fix issue. So it maybe was more of a validator, but less useful.

bfabio avatar Oct 10 '25 12:10 bfabio