import { SchemaType } from '../../types' ; import { JsonSchema } from '../../types/jsonschema' ; const SCALAR_TYPES = [ 'boolean' , 'integer' , 'null' , 'number' , 'string' ] ; export const Schema = { isScalar ( schema ) { return SCALAR_TYPES . includes ( schema . type ) ; } } ;