Open jochenjonc opened 6 years ago
No, I'll try and give it a go and see where any problems are.
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