-
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.
Merge pull request #1413 from aml-org/W-11187481-semex-same-branch
W-11187481 - Added default shape to SemEx CustomDomainProperty
- Loading branch information
Showing
15 changed files
with
226 additions
and
18 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/semantic/api-endpoint-operation.raml
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 @@ | ||
#%RAML 1.0 | ||
title: Something | ||
|
||
annotationTypes: | ||
pagination: any | ||
|
||
/sample: | ||
(pagination): | ||
pageSize: 15 | ||
get: | ||
(pagination): | ||
pageSize: 10 | ||
responses: | ||
200: | ||
description: A Response |
29 changes: 29 additions & 0 deletions
29
amf-cli/shared/src/test/resources/semantic/dialect-endpoint-operation.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,29 @@ | ||
#%Dialect 1.0 | ||
dialect: Pagination Test | ||
version: 1.0 | ||
|
||
external: | ||
apiContract: http://a.ml/vocabularies/apiContract# | ||
aml: http://a.ml/vocab# | ||
|
||
documents: {} | ||
|
||
annotationMappings: | ||
PaginationAnnotation: | ||
domain: | ||
- apiContract.EndPoint | ||
- apiContract.Operation | ||
propertyTerm: aml.pagination | ||
range: Pagination | ||
|
||
nodeMappings: | ||
Pagination: | ||
classTerm: aml.Pagination | ||
mapping: | ||
pageSize: | ||
propertyTerm: aml.PageSize | ||
range: integer | ||
mandatory: true | ||
|
||
extensions: | ||
pagination: PaginationAnnotation |
17 changes: 17 additions & 0 deletions
17
amf-cli/shared/src/test/resources/validations/raml/annotation-mixed-1.raml
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,17 @@ | ||
#%RAML 1.0 | ||
title: something | ||
|
||
annotationTypes: | ||
something: | ||
type: string | ||
|
||
/test: | ||
(other): 44 | ||
get: | ||
responses: | ||
(something): blablabla | ||
200: | ||
body: | ||
application/json: | ||
(something): sarasa | ||
type: string |
17 changes: 17 additions & 0 deletions
17
amf-cli/shared/src/test/resources/validations/raml/annotation-mixed-2.raml
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,17 @@ | ||
#%RAML 1.0 | ||
title: something | ||
|
||
annotationTypes: | ||
other: | ||
type: any | ||
|
||
/test: | ||
(other): 44 | ||
get: | ||
responses: | ||
(something): blablabla | ||
200: | ||
body: | ||
application/json: | ||
(something): sarasa | ||
type: string |
19 changes: 19 additions & 0 deletions
19
amf-cli/shared/src/test/resources/validations/raml/annotation-with-definition-multiple.raml
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,19 @@ | ||
#%RAML 1.0 | ||
title: something | ||
|
||
annotationTypes: | ||
something: | ||
type: string | ||
other: | ||
type: any | ||
|
||
/test: | ||
(other): 44 | ||
get: | ||
responses: | ||
(something): blablabla | ||
200: | ||
body: | ||
application/json: | ||
(something): sarasa | ||
type: string |
15 changes: 15 additions & 0 deletions
15
amf-cli/shared/src/test/resources/validations/raml/annotation-with-definition.raml
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 @@ | ||
#%RAML 1.0 | ||
title: something | ||
|
||
annotationTypes: | ||
something: | ||
type: string | ||
|
||
/test: | ||
get: | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
(something): sarasa | ||
type: string |
11 changes: 11 additions & 0 deletions
11
amf-cli/shared/src/test/resources/validations/raml/annotation-without-definition.raml
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,11 @@ | ||
#%RAML 1.0 | ||
title: something | ||
|
||
/test: | ||
get: | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
(something): sarasa | ||
type: string |
14 changes: 14 additions & 0 deletions
14
amf-cli/shared/src/test/resources/validations/reports/model/annotation-mixed-1.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/validations/raml/annotation-mixed-1.raml | ||
Profile: RAML 1.0 | ||
Conforms: false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/parser#DomainProperty-schema-minCount | ||
Message: type is mandatory for a RAML annotationType | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/validations/raml/annotation-mixed-1.raml#/web-api/endpoint/%2Ftest/customDomainProperties/other/other | ||
Property: http://a.ml/vocabularies/shapes#schema | ||
Range: [(9,2)-(10,0)] | ||
Location: file://amf-cli/shared/src/test/resources/validations/raml/annotation-mixed-1.raml |
14 changes: 14 additions & 0 deletions
14
amf-cli/shared/src/test/resources/validations/reports/model/annotation-mixed-2.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/validations/raml/annotation-mixed-2.raml | ||
Profile: RAML 1.0 | ||
Conforms: false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/parser#DomainProperty-schema-minCount | ||
Message: type is mandatory for a RAML annotationType | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/validations/raml/annotation-mixed-2.raml#/web-api/endpoint/%2Ftest/supportedOperation/get/returns/resp/200/payload/application%2Fjson/scalar/schema/customDomainProperties/something/something | ||
Property: http://a.ml/vocabularies/shapes#schema | ||
Range: [(16,12)-(17,0)] | ||
Location: file://amf-cli/shared/src/test/resources/validations/raml/annotation-mixed-2.raml |
14 changes: 14 additions & 0 deletions
14
.../shared/src/test/resources/validations/reports/model/annotation-without-definition.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/validations/raml/annotation-without-definition.raml | ||
Profile: RAML 1.0 | ||
Conforms: false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/parser#DomainProperty-schema-minCount | ||
Message: type is mandatory for a RAML annotationType | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/validations/raml/annotation-without-definition.raml#/web-api/endpoint/%2Ftest/supportedOperation/get/returns/resp/200/payload/application%2Fjson/scalar/schema/customDomainProperties/something/something | ||
Property: http://a.ml/vocabularies/shapes#schema | ||
Range: [(10,12)-(11,0)] | ||
Location: file://amf-cli/shared/src/test/resources/validations/raml/annotation-without-definition.raml |
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
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