fake-schema-cli
Advanced tools
| samples: | ||
| type: string | ||
| minLength: 100 | ||
| maxLength: 10 |
@@ -64,2 +64,9 @@ /* eslint-env mocha */ | ||
| }); | ||
| it('should generate overriding max items', () => { | ||
| const generate = generator.configure({ maxItems: 1 }, 'en', filename => generator.readFile(filename)); | ||
| return expect(generate(path.resolve(__dirname, '../fixtures/N-timesRepeated.json'), undefined, undefined)) | ||
| .to.eventually.have.length(1); | ||
| }); | ||
| }); |
+2
-0
@@ -7,2 +7,3 @@ #!/usr/bin/env node | ||
| cli | ||
| .version('0.0.4') | ||
| .usage('json-schema.yaml -y -l es_MX -r user') | ||
@@ -26,2 +27,3 @@ .option('-r, --rootSchema <value>', 'Set root schema from definitions') | ||
| settings.maxLength = cli.maxLength; | ||
| settings.minLength = cli.maxLength; | ||
| } | ||
@@ -28,0 +30,0 @@ if (cli.optionalsProbability) { |
+13
-12
| { | ||
| "name": "fake-schema-cli", | ||
| "version": "0.0.4", | ||
| "version": "0.1.0", | ||
| "description": "JSON-Schema-Faker CLI", | ||
@@ -28,19 +28,20 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "commander": "^2.17.1", | ||
| "commander": "^4.1.0", | ||
| "faker": "^4.1.0", | ||
| "get-stdin": "^6.0.0", | ||
| "json-schema-faker": "^0.5.0-rc16", | ||
| "get-stdin": "^7.0.0", | ||
| "json-schema-faker": "^0.5.0-rc23", | ||
| "yamljs": "^0.3.0" | ||
| }, | ||
| "devDependencies": { | ||
| "chai": "^4.1.2", | ||
| "chai": "^4.2.0", | ||
| "chai-as-promised": "^7.1.1", | ||
| "eslint": "^5.4.0", | ||
| "eslint-config-airbnb": "^17.1.0", | ||
| "eslint-plugin-import": "^2.14.0", | ||
| "eslint-plugin-jsx-a11y": "^6.1.1", | ||
| "eslint-plugin-react": "^7.11.1", | ||
| "mocha": "^5.2.0", | ||
| "nyc": "^13.0.1" | ||
| "eslint": "^6.8.0", | ||
| "eslint-config-airbnb": "^18.0.1", | ||
| "eslint-plugin-import": "^2.20.0", | ||
| "eslint-plugin-jsx-a11y": "^6.2.3", | ||
| "eslint-plugin-react": "^7.18.0", | ||
| "eslint-plugin-react-hooks": "^1.7.0", | ||
| "mocha": "^7.0.0", | ||
| "nyc": "^15.0.0" | ||
| } | ||
| } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
12522
-89.42%10
11.11%14
-6.67%220
-93.74%1
Infinity%+ Added
+ Added
- Removed
- Removed
Updated
Updated