UNPKG

@stoplight/spectral

Version:

A flexible object linter with out of the box support for OpenAPI v2 and v3.

7 lines (6 loc) 430 B
import { IFunction, IGivenNode, IParsedResult, IRuleResult, IRunOpts, IRunRule, IThen } from './types'; export declare const lintNode: (node: IGivenNode, rule: IRunRule, then: IThen<string, any>, apply: IFunction<any>, opts: IRunOpts, parsedResult: IParsedResult) => IRuleResult[]; export declare const whatShouldBeLinted: (path: (string | number)[], originalValue: any, rule: IRunRule) => { lint: boolean; value: any; };