JSON Schema and TypeScript types for CoMapeo.
Original draft: https://hackmd.io/wlMcMM65TmuPXGYOEbOR2g#
npm install --save @comapeo/schema
import { validate } from '@comapeo/schema'
const testObservation = {
/* ... */
}
const isValid = validate('observation', testObservation)
// returns true if validates against schema, false otherwise.
import type { Observation } from '@comapeo/schema'
const myObs: Observation = {
/* ... */
}
MIT © 2024 Awana Digital