-
Notifications
You must be signed in to change notification settings - Fork 19
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 #1143 from aml-org/publish-4.7.8-master
Publish amf 4.7.8
- Loading branch information
Showing
13 changed files
with
229 additions
and
33 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
amf-client/shared/src/test/resources/validations/jsonschema/type/invalid-type-array.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,32 @@ | ||
#%RAML 1.0 | ||
title: test | ||
|
||
types: | ||
testType: | | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"testProp": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"examples": [ | ||
"a string", | ||
123 | ||
] | ||
} | ||
} | ||
} | ||
/ep1: | ||
get: | ||
responses: | ||
200: | ||
body: | ||
application/json: | ||
type: testType | ||
example: | ||
validTestProp: "a string" | ||
invalidTestProp: 123 |
21 changes: 21 additions & 0 deletions
21
amf-client/shared/src/test/resources/validations/jsonschema/type/type-array.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,21 @@ | ||
#%RAML 1.0 | ||
title: test | ||
|
||
types: | ||
testType: | | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"testProp": { | ||
"type": [ | ||
"string", | ||
"null" | ||
], | ||
"examples": [ | ||
"a string", | ||
null | ||
] | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
amf-client/shared/src/test/resources/validations/override-any-with-array-type.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,23 @@ | ||
#%RAML 1.0 | ||
|
||
title: test | ||
|
||
types: | ||
BaseObject: | ||
type: object | ||
properties: | ||
items: | ||
type: array | ||
items: | ||
type: any | ||
|
||
ArrayOfObjects: | ||
type: object[] | ||
|
||
CustomObjectList: | ||
type: BaseObject | ||
properties: | ||
items: | ||
type: array | ||
items: | ||
type: ArrayOfObjects |
18 changes: 18 additions & 0 deletions
18
amf-client/shared/src/test/resources/validations/override-any-with-array.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,18 @@ | ||
#%RAML 1.0 | ||
|
||
title: test | ||
|
||
types: | ||
BaseObject: | ||
type: object | ||
properties: | ||
items: | ||
type: array | ||
items: any | ||
|
||
CustomObjectList: | ||
type: BaseObject | ||
properties: | ||
items: | ||
type: array | ||
items: object[] |
17 changes: 17 additions & 0 deletions
17
.../test/resources/validations/reports/jsonschema-examples/type/invalid-type-array.report.js
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 @@ | ||
Model: file://amf-client/shared/src/test/resources/validations/jsonschema/type/invalid-type-array.raml | ||
Profile: RAML 1.0 | ||
Conforms? false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Source: http://a.ml/vocabularies/amf/validation#example-validation-error | ||
Message: should be null | ||
should be string | ||
should match some schema in anyOf | ||
|
||
Level: Violation | ||
Target: file://amf-client/shared/src/test/resources/validations/jsonschema/type/invalid-type-array.raml#/declarations/types/testType/property/testProp/union/testProp/example/default-example_2 | ||
Property: file://amf-client/shared/src/test/resources/validations/jsonschema/type/invalid-type-array.raml#/declarations/types/testType/property/testProp/union/testProp/example/default-example_2 | ||
Position: Some(LexicalInformation([(17,19)-(17,22)])) | ||
Location: file://amf-client/shared/src/test/resources/validations/jsonschema/type/invalid-type-array.raml |
16 changes: 16 additions & 0 deletions
16
...test/resources/validations/reports/jsonschema-examples/type/invalid-type-array.report.jvm
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,16 @@ | ||
Model: file://amf-client/shared/src/test/resources/validations/jsonschema/type/invalid-type-array.raml | ||
Profile: RAML 1.0 | ||
Conforms? false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Source: http://a.ml/vocabularies/amf/validation#example-validation-error | ||
Message: expected type: String, found: Integer | ||
expected: null, found: Integer | ||
|
||
Level: Violation | ||
Target: file://amf-client/shared/src/test/resources/validations/jsonschema/type/invalid-type-array.raml#/declarations/types/testType/property/testProp/union/testProp/example/default-example_2 | ||
Property: file://amf-client/shared/src/test/resources/validations/jsonschema/type/invalid-type-array.raml#/declarations/types/testType/property/testProp/union/testProp/example/default-example_2 | ||
Position: Some(LexicalInformation([(17,19)-(17,22)])) | ||
Location: file://amf-client/shared/src/test/resources/validations/jsonschema/type/invalid-type-array.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
amf.webapi=4.7.7 | ||
amf.webapi=4.7.8 | ||
amf.core=4.2.224 | ||
amf.custom.validations=5.1.9 | ||
amf.custom.validations=5.1.10 | ||
amf.model=3.1.0 |
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