import { JSONSchema } from '../middleware/schemas' ; export const shouldHaveThrown = new Error ( 'should have thrown' ) ; export const personSchema = { $schema : 'http://json-schema.org/draft-07/schema#' , title : 'Person' , description : 'A simple person schema' , type : 'object' , properties : { _id : { description : 'Field to contain ulid-based instance id' , type : 'string' , } , name : { description : 'Name of the person' , type : 'string' , } , age : { type : 'integer' , minimum : 1 , } , } , required : [ '_id' , 'name' , 'age' ] , } ;