Open neomantra opened 9 months ago
Found another one:
double
in the API code but is an integer
in the OpenAPI YAMLThanks! It would be great if you could submit a PR with the changes you think should be made. I normally manually edit the OpenAPI YAML using Stoplight studio, then when we push the update to github it automatically updates the docs page.
I will be happy to — I wasn’t sure if this file was actually the correct one to modify, so thanks for the clarification.
Thanks, yes that's the one.
In the course of making and using
go-openchargemap
, some POI queries were failing due to inconsistencies between the OpenChargeMap OpenAPI spec and the the OpenChargeMap implementation:UserComment:
ID
isint
in the code but is astring
in the OpenAPI YAML.MediaItems:
ID
andChargePointID
areint
in the code, but they arestring
in the OpenAPI YAML.You can find my modified OCM OpenAPI YAML here... In addition to the fixes here, it also adds:
x-go-name: ChargePoint
line due to Golang generation issuesboundingbox
query param fromarray
tostring
as I was having issues; I think that might be me though.I have tremendous gratitude for this project! Thank you! :heart: