Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect OpenAPI entries (#8) #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

neomantra
Copy link

This PR updates the OCM OpenAPI yaml per the discussion in #8.

One commit fixes the incorrect types.

The other commit adds an annotation that was needed for Golang bindings.

There remains whether boundingbox query parameter is an array or string. I have not included that one-line change in this commit series.

🔌 ❤️

  * `latitude` in POI is `number`, not `integer`
  * `UserComments` IDs are `integer`, not `string`
  * `MediaItem` IDs are `integer`, not `string`
When using oapi-codegen, I was receiving the following error:
```
error generating code for type definitions: duplicate typename
'POI' detected, can't auto-rename, please use x-go-name to
specify your own name for one of them
```

Thus this adds `x-go-name: ChargePoint` at the appropriate place.
It is an `x-` annotation which are generally ignored by tools that don't use them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant