-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
W-15570769: fix oas components unresolved ref violations
- Loading branch information
1 parent
3271bf4
commit 062d8d1
Showing
7 changed files
with
77 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
amf-cli/shared/src/test/resources/components/oas3/oas-component-unresolved-ref.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
openapi: "3.0.0" | ||
info: | ||
version: 1.0.0 | ||
title: oas components test | ||
|
||
paths: { } | ||
|
||
components: | ||
schemas: | ||
RequestTypeTOPaged: | ||
description: "RequestTypeTOPaged" | ||
type: "object" | ||
allOf: | ||
- $ref: "#/components/responses/PageResponse" | ||
- type: "string" |
14 changes: 14 additions & 0 deletions
14
...cli/shared/src/test/resources/components/oas3/reports/oas-component-unresolved-ref.report
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ModelId: file://amf-cli/shared/src/test/resources/components/oas3/oas-component-unresolved-ref.yaml | ||
Profile: | ||
Conforms: false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/core#unresolved-reference | ||
Message: Unresolved reference '#/components/responses/PageResponse' | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/components/oas3/oas-component-unresolved-ref.yaml#/declares/shape/RequestTypeTOPaged/and/unresolved | ||
Property: | ||
Range: [(14,10)-(15,0)] | ||
Location: file://amf-cli/shared/src/test/resources/components/oas3/oas-component-unresolved-ref.yaml |
15 changes: 15 additions & 0 deletions
15
amf-cli/shared/src/test/resources/validations/oas3/oas-components-unresolved-ref.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
openapi: "3.0.0" | ||
info: | ||
version: 1.0.0 | ||
title: oas components test | ||
|
||
paths: { } | ||
|
||
components: | ||
schemas: | ||
RequestTypeTOPaged: | ||
description: "RequestTypeTOPaged" | ||
type: "object" | ||
allOf: | ||
- $ref: "#/components/responses/PageResponse" | ||
- type: "string" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
amf-cli/shared/src/test/scala/amf/validation/Oas30UniquePlatformUnitValidationsTest.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters