UNPKG

@redocly/openapi-core

Version:

See https://github.com/Redocly/redocly-cli

34 lines (31 loc) 899 B
import type { PluginStyleguideConfig } from './types'; const spec: PluginStyleguideConfig<'built-in'> = { rules: { struct: 'error', }, // TODO: populate with spec-related rules similar to `arazzo1Rules` oas2Rules: {}, oas3_0Rules: {}, oas3_1Rules: {}, async2Rules: {}, async3Rules: {}, arazzo1Rules: { 'sourceDescription-type': 'error', 'respect-supported-versions': 'off', 'workflowId-unique': 'error', 'stepId-unique': 'error', 'sourceDescription-name-unique': 'error', 'sourceDescriptions-not-empty': 'error', 'workflow-dependsOn': 'error', 'parameters-unique': 'error', 'step-onSuccess-unique': 'error', 'step-onFailure-unique': 'error', 'requestBody-replacements-unique': 'error', 'no-criteria-xpath': 'off', 'criteria-unique': 'error', }, overlay1Rules: { 'info-contact': 'warn', }, }; export default spec;