We should validate the schema of all requests, to avoid getting corrupt data into the database, and avoiding things like nodes with no lat/lon or out of bounds.
This is easiest to do with the restructure branch since we can do JSON schema validation after the XML is parsed. Looks like ajv is the fastest and most spec compliant validator.
We should validate the schema of all requests, to avoid getting corrupt data into the database, and avoiding things like nodes with no lat/lon or out of bounds.
This is easiest to do with the restructure branch since we can do JSON schema validation after the XML is parsed. Looks like ajv is the fastest and most spec compliant validator.