Skip to content

Commit

Permalink
feat(ruleset-migrator): add arazzo support
Browse files Browse the repository at this point in the history
  • Loading branch information
frankkilcommins committed Aug 28, 2024
1 parent 98fcfe3 commit ef86ef4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@stoplight/spectral-parsers": "^1.0.3",
"@stoplight/spectral-ref-resolver": "^1.0.4",
"@stoplight/spectral-ruleset-bundler": "^1.5.4",
"@stoplight/spectral-ruleset-migrator": "^1.9.5",
"@stoplight/spectral-ruleset-migrator": "^1.9.6",
"@stoplight/spectral-rulesets": "1.20.2",
"@stoplight/spectral-runtime": "^1.1.2",
"@stoplight/types": "^13.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ruleset-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@stoplight/spectral-functions": ">=1",
"@stoplight/spectral-parsers": ">=1",
"@stoplight/spectral-ref-resolver": "^1.0.4",
"@stoplight/spectral-ruleset-migrator": "^1.7.4",
"@stoplight/spectral-ruleset-migrator": "^1.9.6",
"@stoplight/spectral-rulesets": "^1.20.1",
"@stoplight/spectral-runtime": "^1.1.0",
"@stoplight/types": "^13.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ruleset-migrator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stoplight/spectral-ruleset-migrator",
"version": "1.9.5",
"version": "1.9.6",
"homepage": "https://github.com/stoplightio/spectral",
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <support@stoplight.io>",
Expand Down
1 change: 1 addition & 0 deletions packages/ruleset-migrator/src/transformers/extends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { isBasicRuleset } from '../utils/isBasicRuleset';
const REPLACEMENTS = {
'spectral:oas': 'oas',
'spectral:asyncapi': 'asyncapi',
'spectral:arazzo': 'arazzo',
};

export { transformer as default };
Expand Down
2 changes: 2 additions & 0 deletions packages/ruleset-migrator/src/transformers/formats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const FORMATS = [
'oas3',
'oas3.0',
'oas3.1',
'arazzo1',
'arazzo1.0',
'asyncapi2',
'json-schema',
'json-schema-loose',
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2650,7 +2650,7 @@ __metadata:
"@stoplight/spectral-parsers": ^1.0.3
"@stoplight/spectral-ref-resolver": ^1.0.4
"@stoplight/spectral-ruleset-bundler": ^1.5.4
"@stoplight/spectral-ruleset-migrator": ^1.9.5
"@stoplight/spectral-ruleset-migrator": ^1.9.6
"@stoplight/spectral-rulesets": 1.20.2
"@stoplight/spectral-runtime": ^1.1.2
"@stoplight/types": ^13.6.0
Expand Down Expand Up @@ -2796,7 +2796,7 @@ __metadata:
"@stoplight/spectral-functions": ">=1"
"@stoplight/spectral-parsers": ">=1"
"@stoplight/spectral-ref-resolver": ^1.0.4
"@stoplight/spectral-ruleset-migrator": ^1.7.4
"@stoplight/spectral-ruleset-migrator": ^1.9.6
"@stoplight/spectral-rulesets": ^1.20.1
"@stoplight/spectral-runtime": ^1.1.0
"@stoplight/types": ^13.6.0
Expand All @@ -2812,7 +2812,7 @@ __metadata:
languageName: unknown
linkType: soft

"@stoplight/spectral-ruleset-migrator@^1.7.4, @stoplight/spectral-ruleset-migrator@^1.9.5, @stoplight/spectral-ruleset-migrator@workspace:packages/ruleset-migrator":
"@stoplight/spectral-ruleset-migrator@^1.9.6, @stoplight/spectral-ruleset-migrator@workspace:packages/ruleset-migrator":
version: 0.0.0-use.local
resolution: "@stoplight/spectral-ruleset-migrator@workspace:packages/ruleset-migrator"
dependencies:
Expand Down

0 comments on commit ef86ef4

Please sign in to comment.