publiccode.yml icon indicating copy to clipboard operation
publiccode.yml copied to clipboard

Provide YAML/JSON schema file

Open rklec opened this issue 1 month ago • 2 comments

Being new to this standard it would be very helpful if you could provide a YAML schema file.

Problem

I used https://editor.opencode.de but apparently that is outdated as it only generates a publiccodeYmlVersion: '0.2'. There is v0.5.0 here already though?

Proposed solution

Could you provide a YAML/JSON schema file, so that in compatible IDEs it can be used directly?

And link it here form the Readme?

rklec avatar Dec 17 '25 14:12 rklec

Whole writing this, found out that at least JetBrains IDEs already use https://www.schemastore.org/publiccode.json from https://www.schemastore.org - this is linked/documented nowhere though, as far as see?

Is this the official schema and if so, is it up-to-date? I guess maintaining it in this repo would make much more sense?

rklec avatar Dec 17 '25 15:12 rklec

hi @rklec i've got the same interest.

I found this repository a while ago an filed an issue: https://github.com/teamdigitale/publiccode-json-schema/issues/1#issuecomment-3670713098. In the answer that @Lorezz put he states that Developer Italia is working on a JSON Schema so that's good news.

In the meanwhile i would like to point you to the editor that we build at developer.overheid.nl: https://developer-overheid-nl.github.io/publiccode-checker/#/pc

If you paste an URL to a .yml in the topbar in converts the YAML it to JSON instantly and you can check the integrity of your publiccode.yml.

tomootes avatar Dec 20 '25 15:12 tomootes