Open seskildsen opened 2 years ago
I think the type is defined as NumType = Union[float, int]
here https://github.com/developmentseed/geojson-pydantic/blob/25910ca48e88acd8a990d10c2850e9fe7030a4b6/geojson_pydantic/types.py#L7
Why it is presented as string 🤷♂️
There are other issues regarding this type union: https://github.com/samuelcolvin/pydantic/issues/1423#issuecomment-642797287. It seems to be unrelated...
Looking at the json it seems to be correct (or at least not "wrong"):
The openapi javascript client itself complains when rendering this:
So far I have no idea how to fix this.
The datatype should be float but display as string.