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
Has anyone used the GeoJSON.Net library in combination with NSwag?
I've tried and the problems I have are for instance the lack of parameterless constructor on the geometry types. Or maybe if the types would all have an interface it would work also.
Regards,
Jochen
The text was updated successfully, but these errors were encountered:
The problem is that IGeometryObject is not compatible with geojson:
Point.Coordinates is an IPosition[] with lat,long and alt properties, not a float[]. This leads to incorrect jsonschema being generated.
Edit: My mistake - there are JsonConverters on the IPosition properties although nswag doesn't use that to transform the schema. That's easy to "fix" with a typemapper. IGeometryObject or IGeoJSONObject doesn't have a JsonInheritanceConverter which is more difficult to work around.
Hi,
Has anyone used the GeoJSON.Net library in combination with NSwag?
I've tried and the problems I have are for instance the lack of parameterless constructor on the geometry types. Or maybe if the types would all have an interface it would work also.
Regards,
Jochen
The text was updated successfully, but these errors were encountered: