You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im using openapi-generator-cli via Docker to generate golang server, but I dont know how to create Location object with this define (generated by openapi-generator-cli):
type Location struct {
// Last date and time when the device was localized. It must follow RFC 3339 and must have time zone. Recommended format is yyyy-MM-dd'T'HH:mm:ss.SSSZ (i.e. which allows 2023-07-03T14:27:08.312+02:00 or 2023-07-03T12:27:08.312Z)
LastLocationTime time.Time `json:"lastLocationTime"`
Area Area `json:"area"`
}
// Area Base schema for all areas
type Area struct {
AreaType AreaType `json:"areaType"`
}
// Circle Circular area
type Circle struct {
Area
Center Point `json:"center"`
// Distance from the center in meters
Radius float32 `json:"radius"`
}
// Polygon Polygonal area
type Polygon struct {
Area
// List of points defining a polygon
Boundary []Point `json:"boundary"`
}
Expected action
I want to build Location object which represent Circle or Polygon
Maybe Circle/Polygon is Location's properties instead of Area ??
I'm not sure if there is any problem with location-retrieval.yaml file ???
Problem description
Im using openapi-generator-cli via Docker to generate golang server, but I dont know how to create Location object with this define (generated by openapi-generator-cli):
Expected action
I want to build Location object which represent Circle or Polygon
Maybe Circle/Polygon is Location's properties instead of Area ??
I'm not sure if there is any problem with location-retrieval.yaml file ???
Additional context
I'm using latest openapi-generator-cli image and yaml file on https://github.com/camaraproject/DeviceLocation/blob/main/code/API_definitions/location-retrieval.yaml
The text was updated successfully, but these errors were encountered: