Skip to content

Commit 41a72a2

Browse files
committed
feat: change arazzo supported version validation
1 parent 54b462e commit 41a72a2

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/hip-apricots-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@redocly/openapi-core": patch
3+
---
4+
5+
Added validation to ensure Arazzo files use supported versions (1.0.0 or 1.0.1).

packages/core/src/rules/arazzo/__tests__/respect-supported-versions.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('Arazzo respect-supported-versions', () => {
8181
"source": "arazzo.yaml",
8282
},
8383
],
84-
"message": "Only 1.0.1 Arazzo version is supported by Respect.",
84+
"message": "Only 1.0.0, 1.0.1 Arazzo versions are supported by Respect.",
8585
"ruleId": "respect-supported-versions",
8686
"severity": "error",
8787
"suggest": [],

packages/core/src/typings/arazzo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,4 @@ export interface ArazzoDefinition {
169169

170170
export const VERSION_PATTERN = /^1\.0\.\d+(-.+)?$/;
171171

172-
export const ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT = ['1.0.1'];
172+
export const ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT = ['1.0.0', '1.0.1'];

0 commit comments

Comments
 (0)