1.1.2 • Published 8 months ago

@bpinternal/jex v1.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

Jex

JSON-Extends; JSON Schema type checking library

Usage

import * as jex from '.'

const res1 = jex.jsonSchemaExtends(
  {
    type: 'object',
    properties: {
      name: { type: 'string' },
      age: { type: 'number' }
    }
  },
  {
    type: 'object',
    properties: {
      name: { type: 'string' }
    }
  }
)
console.log(res1) // true

const res2 = jex.jsonSchemaExtends(
  {
    type: 'object',
    properties: {
      name: { type: 'string' },
      age: { type: 'number' }
    }
  },
  {
    type: 'object',
    properties: {
      name: { type: 'string' }
    },
    required: ['name']
  }
)
console.log(res2) // false
1.1.1

8 months ago

1.1.2

8 months ago

1.1.0

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago

0.0.12

9 months ago

0.0.10

9 months ago

0.0.11

9 months ago

0.0.9

12 months ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.6

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago