freifunk / directory.api.freifunk.net

directory of all freifunk communities
http://freifunk.net/wie-mache-ich-mit/community-finden/
Creative Commons Zero v1.0 Universal
37 stars 227 forks source link

Schema issue at API file of Freifunk Halle #665

Open christian-weiss opened 3 years ago

christian-weiss commented 3 years ago

Issue:

ValidationError in community file Freifunk Halle:

     Error in nodeMaps->0->technicalType: u'meshviewer' is not one of [u'', u'ffmap', u'ffsomething', u'olsr-dot', u'openwifimap', u'netmon', u'libremap', u'nodewatcher', u'kml']

     Error in nodeMaps->1->technicalType: u'nodelist' is not one of [u'', u'ffmap', u'ffsomething', u'olsr-dot', u'openwifimap', u'netmon', u'libremap', u'nodewatcher', u'kml']

     Url: https://www.freifunk-halle.org/freifunk-api.json

API file is at spec 0.4.1, "meshviewer"-support was added in 0.4.9 - we suggest to update API file to 0.4.16. "nodelist"-support was added in 0.4.5 - we suggest to update API file to 0.4.16.

Akarn-26 commented 10 months ago

@andibraeu I think there has been an issue with the nodesmap section like either the u'meshviewer' or u'nodelist' is not allowed or the format issue

Code-Maniac-Rza commented 1 month ago

Hey there! For this issue, it seems the API file is using an outdated spec, which does not support the meshviewer and nodelist values for the technicalType field. My idea is to update the API version, then modify the technicalType values and then validate the freifunk-api.json file against the API schema. I think I can fix this if assigned.

christian-weiss commented 1 month ago

@Code-Maniac-Rza go ahead. Feel free to upload an API file which adheres to latest API schema.