@stoplight/spectral-core 1.7.0 → 1.8.0

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.
@@ -9,6 +9,7 @@
9
9
  "format": "url",
10
10
  "errorMessage": "must be a valid URL"
11
11
  },
12
+ "description": { "type": "string" },
12
13
  "rules": {
13
14
  "type": "object",
14
15
  "additionalProperties": {
@@ -1,6 +1,6 @@
1
1
  export { assertValidRuleset, RulesetValidationError } from './validation';
2
2
  export { getDiagnosticSeverity } from './utils';
3
- export { createRulesetFunction } from './rulesetFunction';
3
+ export { createRulesetFunction, SchemaDefinition as RulesetFunctionSchemaDefinition } from './rulesetFunction';
4
4
  export { Format } from './format';
5
5
  export { RulesetDefinition, RuleDefinition, ParserOptions, HumanReadableDiagnosticSeverity } from './types';
6
6
  export { Ruleset } from './ruleset';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ruleset/index.ts"],"names":[],"mappings":";;;AAAA,2CAA0E;AAAjE,gHAAA,kBAAkB,OAAA;AAAE,oHAAA,sBAAsB,OAAA;AACnD,iCAAgD;AAAvC,8GAAA,qBAAqB,OAAA;AAC9B,qDAA0D;AAAjD,wHAAA,qBAAqB,OAAA;AAG9B,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,+BAA8B;AAArB,4FAAA,IAAI,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ruleset/index.ts"],"names":[],"mappings":";;;AAAA,2CAA0E;AAAjE,gHAAA,kBAAkB,OAAA;AAAE,oHAAA,sBAAsB,OAAA;AACnD,iCAAgD;AAAvC,8GAAA,qBAAqB,OAAA;AAC9B,qDAA+G;AAAtG,wHAAA,qBAAqB,OAAA;AAG9B,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,+BAA8B;AAArB,4FAAA,IAAI,OAAA"}
@@ -26,7 +26,7 @@ declare type Schema = ((Omit<JSONSchema, SchemaKeyedFragmentKeyword | SchemaFrag
26
26
  items?: SchemaDefinition | SchemaDefinition[];
27
27
  dependencies?: SchemaDefinition | string[];
28
28
  };
29
- declare type SchemaDefinition = Schema | boolean;
29
+ export declare type SchemaDefinition = Schema | boolean;
30
30
  export declare function createRulesetFunction<I extends unknown, O extends unknown>({ input, errorOnInvalidInput, options, }: {
31
31
  input: Schema | null;
32
32
  errorOnInvalidInput?: boolean;
@@ -49,6 +49,7 @@ export declare type RulesetScopedAliasDefinition = {
49
49
  export declare type RulesetAliasesDefinition = Record<string, string | RulesetScopedAliasDefinition>;
50
50
  export declare type RulesetDefinition = Readonly<{
51
51
  documentationUrl?: string;
52
+ description?: string;
52
53
  formats?: Format<any>[];
53
54
  parserOptions?: Partial<ParserOptions>;
54
55
  overrides?: RulesetOverridesDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoplight/spectral-core",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,