@mapbox/to-fix-validate

Validation functions for to-fix features

Usage no npm install needed!

<script type="module">
  import mapboxToFixValidate from 'https://cdn.skypack.dev/@mapbox/to-fix-validate';
</script>

README

Build Status

to-fix-validate

Exposes a function to validate FeatureCollections sent to the to-fix backend, enforcing the properties schema.

Currently exposes a single function called validateFeatureCollection that returns false if no errors, else an Array of strings with error messages.