Skip to content

Commit 094ff83

Browse files
committed
feat: rename specArazzo to spec
1 parent 7fbcdbd commit 094ff83

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

packages/core/src/config/builtIn.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import recommended from './recommended';
22
import recommendedStrict from './recommended-strict';
33
import all from './all';
44
import minimal from './minimal';
5-
import specArazzo from './spec-arazzo';
5+
import spec from './spec';
66
import { rules as oas3Rules, preprocessors as oas3Preprocessors } from '../rules/oas3';
77
import { rules as oas2Rules, preprocessors as oas2Preprocessors } from '../rules/oas2';
88
import { rules as async2Rules, preprocessors as async2Preprocessors } from '../rules/async2';
@@ -21,7 +21,7 @@ export const builtInConfigs: Record<string, StyleguideRawConfig> = {
2121
'recommended-strict': recommendedStrict,
2222
minimal,
2323
all,
24-
'spec-arazzo': specArazzo,
24+
spec,
2525
'redocly-registry': {
2626
decorators: { 'registry-dependencies': 'on' },
2727
},
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
import type { PluginStyleguideConfig } from './types';
22

3-
const specArazzo: PluginStyleguideConfig<'built-in'> = {
3+
const spec: PluginStyleguideConfig<'built-in'> = {
4+
rules: {
5+
struct: 'error',
6+
},
7+
oas2Rules: {},
8+
oas3_0Rules: {},
9+
oas3_1Rules: {},
10+
async2Rules: {},
11+
async3Rules: {},
412
arazzo1Rules: {
513
'parameters-not-in-body': 'error',
614
'sourceDescription-type': 'error',
@@ -20,4 +28,4 @@ const specArazzo: PluginStyleguideConfig<'built-in'> = {
2028
},
2129
};
2230

23-
export default specArazzo;
31+
export default spec;

0 commit comments

Comments
 (0)