Skip to content

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