5.1.0 • Published 4 years ago
jsonotron-builtin-field-types v5.1.0
A library of field type definitions included with the Jsonotron engine
A library of field type definitions for the Jsonotron system.
Installation
npm install jsonotron-builtin-field-types --save
Usage
const { builtinFieldTypes } = require('jsonotron-builtin-field-types')
const ft = builtinFieldTypes.find(fieldType => fieldType.name === 'shortString')
console.log(ft.name) // outputs 'shortString'
console.log(ft.jsonSchema) // outputs { type: 'string', maxLength: 20 }
console.log(ft.validTestCases) // outputs ['my short string', 'abcdefghijklmnopqrst', '', ' ', '!!']
Development
Code base adheres to the rules chosen by https://standardjs.com/. Code is formatted with 2 spaces.
Tests are written using Jest with 100% coverage.
npm test
Continuous Deployment
Any commits to master will cause the library to be re-published.
5.1.0
4 years ago
5.0.7
4 years ago
5.0.6
4 years ago
5.0.5
4 years ago
5.0.4
4 years ago
5.0.3
4 years ago
5.0.2
4 years ago
5.0.1
4 years ago
5.0.0
4 years ago
4.0.0
4 years ago
3.0.4
4 years ago
3.0.3
4 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.1.0
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.0
4 years ago