I got back a 400 response with the following body:
{"ruleError_0":{"name":"Spatial reference","message":"British National Grid - Spatial Reference not present in the geometry or it is wrong referenced.","path":"Source.provision.regulatedPlace.geometry","rule":"Spatial reference should be SRID=27700"}}
This caused me a good deal of confusion, as the geometry was specified with SRID=27700 as required. I eventually worked out that the externalReference property was at the wrong level (for reasons mentioned in #25), and should have been a child of "geometry" and a sibling of "version" and "Polygon". When I fixed this I was able to submit the request successfully.
There is clearly something wrong with the validation if it is reporting errors that are not present and not reporting the actual error.
I attempted to create a DTRO via the
createFromFile
endpoint that included aregulatedPlace
looking something like this:I got back a 400 response with the following body:
This caused me a good deal of confusion, as the geometry was specified with SRID=27700 as required. I eventually worked out that the
externalReference
property was at the wrong level (for reasons mentioned in #25), and should have been a child of"geometry"
and a sibling of"version"
and"Polygon"
. When I fixed this I was able to submit the request successfully.There is clearly something wrong with the validation if it is reporting errors that are not present and not reporting the actual error.