italia / publiccode-validator

publiccode.yml rest validator for Go
BSD 3-Clause "New" or "Revised" License
4 stars 3 forks source link

Properties should be lowercase #1

Open ioggstream opened 4 years ago

ioggstream commented 4 years ago

I expect

Properties to be lowercase. See https://docs.italia.it/italia/piano-triennale-ict/lg-modellointeroperabilita-docs/it/bozza/doc/profili-di-interazione/regole-comuni-rest-soap.html#formato-dei-dati

Instead

https://github.com/italia/pc-web-validator/blob/df0c77efb8497d39eb1b2db9e55613e34360fcf8/api_spec_oa3.yml#L88

saniales commented 4 years ago

You can just edit the yml file

as per errors.go file interested struct since no json struct tag is specified on any field

https://github.com/italia/publiccode-validator/blob/66e39c37e09afed51d58c1c6afb63c84e4e866ec/src/errors.go#L18-L21

will automatically use lowercase field names "key" and "reason". So just change the spec without issues.

sebbalex commented 3 years ago

They are still there to do not break the backward compatibility, but they will be removed on next release.