@stoplight/spectral-url-versioning
Version:
There's no one right way to version, but there's a lot of objectively bad ways you want to avoid.
58 lines (55 loc) • 1.99 kB
TypeScript
import * as _stoplight_spectral_functions from '@stoplight/spectral-functions';
import * as _stoplight_spectral_core from '@stoplight/spectral-core';
import { DiagnosticSeverity } from '@stoplight/types';
declare const _default: {
rules: {
/**
* @author: Phil Sturgeon <https://github.com/philsturgeon>
*/
"one-api-version-per-document": {
message: string;
description: string;
severity: DiagnosticSeverity;
given: string;
formats: _stoplight_spectral_core.Format<void>[];
then: {
function: _stoplight_spectral_core.RulesetFunctionWithValidator<{
url: string;
}[], null>;
};
};
/**
* @author: Phil Sturgeon <https://github.com/philsturgeon>
*/
"only-major-api-versions": {
message: string;
description: string;
severity: DiagnosticSeverity;
given: string;
formats: _stoplight_spectral_core.Format<void>[];
then: {
function: _stoplight_spectral_core.RulesetFunctionWithValidator<string, _stoplight_spectral_functions.PatternOptions>;
functionOptions: {
notMatch: string;
};
};
};
/**
* @author: Alex Savage <https://github.com/savage-alex>
*/
"no-path-versioning": {
message: string;
description: string;
severity: DiagnosticSeverity;
given: string;
formats: _stoplight_spectral_core.Format<void>[];
then: {
function: _stoplight_spectral_core.RulesetFunctionWithValidator<string, _stoplight_spectral_functions.PatternOptions>;
functionOptions: {
notMatch: string;
};
};
};
};
};
export { _default as default };