@tsofist/schema-forge 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/validator.js +5 -2
  2. package/package.json +1 -1
package/lib/validator.js CHANGED
@@ -366,8 +366,11 @@ function addJSDocKeywords(engine) {
366
366
  pattern: EntityNamePattern,
367
367
  },
368
368
  indexes: {
369
- type: 'array',
370
- items: DBIndexSchema,
369
+ type: 'object',
370
+ additionalProperties: DBIndexSchema,
371
+ propertyNames: {
372
+ pattern: PropertyNamePattern,
373
+ },
371
374
  },
372
375
  },
373
376
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsofist/schema-forge",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "description": "Generate JSON schema from TypeScript types",
5
5
  "author": "Andrew Berdnikov <tsofistgudmen@gmail.com>",
6
6
  "license": "LGPL-3.0",