-
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.
[debate] breaking but correct changes
- Loading branch information
1 parent
c4faf68
commit fbf7df7
Showing
2 changed files
with
74 additions
and
29 deletions.
There are no files selected for viewing
65 changes: 38 additions & 27 deletions
65
amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/output.txt
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,27 +1,38 @@ | ||
#%RAML 1.0 | ||
title: valid property type inheritance | ||
types: | ||
Anything: | ||
properties: | ||
name: | ||
type: any | ||
StringOrNumber: | ||
properties: | ||
name: | ||
type: string | number | ||
NumberOrNil: | ||
properties: | ||
name: | ||
type: number | nil | ||
Integer: | ||
properties: | ||
name: | ||
type: integer | ||
StringOrNumberOrBoolean: | ||
properties: | ||
name: | ||
type: string | number | boolean | ||
NumberOrString: | ||
properties: | ||
name: | ||
type: number | string | ||
ModelId: file://amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/input.raml | ||
Profile: RAML 1.0 | ||
Conforms: false | ||
Number of results: 4 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/resolution#invalid-type-inheritance | ||
Message: Resolution error: Invalid scalar inheritance base type http://a.ml/vocabularies/shapes#number < http://www.w3.org/2001/XMLSchema#string | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/input.raml#/declares/shape/NumberOrString/property/name/union/name/0 | ||
Property: http://a.ml/vocabularies/shapes#inherits | ||
Range: [(30,14)-(30,20)] | ||
Location: file://amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/input.raml | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/resolution#invalid-type-inheritance | ||
Message: Resolution error: Invalid scalar inheritance base type http://a.ml/vocabularies/shapes#number < http://www.w3.org/2001/XMLSchema#boolean | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/input.raml#/declares/shape/NumberOrString/property/name/union/name/2 | ||
Property: http://a.ml/vocabularies/shapes#inherits | ||
Range: [(30,14)-(30,20)] | ||
Location: file://amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/input.raml | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/resolution#invalid-type-inheritance | ||
Message: Resolution error: Invalid scalar inheritance base type http://www.w3.org/2001/XMLSchema#string < http://a.ml/vocabularies/shapes#number | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/input.raml#/declares/shape/NumberOrString/property/name/union/name/4 | ||
Property: http://a.ml/vocabularies/shapes#inherits | ||
Range: [(30,21)-(30,27)] | ||
Location: file://amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/input.raml | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/resolution#invalid-type-inheritance | ||
Message: Resolution error: Invalid scalar inheritance base type http://www.w3.org/2001/XMLSchema#string < http://www.w3.org/2001/XMLSchema#boolean | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/input.raml#/declares/shape/NumberOrString/property/name/union/name/5 | ||
Property: http://a.ml/vocabularies/shapes#inherits | ||
Range: [(30,21)-(30,27)] | ||
Location: file://amf-cli/shared/src/test/resources/org/raml/parser/types/inheritance/override/input.raml |
38 changes: 36 additions & 2 deletions
38
amf-cli/shared/src/test/resources/validations/reports/examples/inheritance.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 |
---|---|---|
@@ -1,4 +1,38 @@ | ||
ModelId: file://amf-cli/shared/src/test/resources/validations/production/inheritance.raml | ||
Profile: RAML 1.0 | ||
Conforms: true | ||
Number of results: 0 | ||
Conforms: false | ||
Number of results: 4 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/resolution#invalid-type-inheritance | ||
Message: Resolution error: Invalid scalar inheritance base type http://a.ml/vocabularies/shapes#number < http://www.w3.org/2001/XMLSchema#string | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/validations/production/inheritance.raml#/declares/shape/NumberOrString/property/name/union/name/0 | ||
Property: http://a.ml/vocabularies/shapes#inherits | ||
Range: [(48,14)-(48,20)] | ||
Location: file://amf-cli/shared/src/test/resources/validations/production/inheritance.raml | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/resolution#invalid-type-inheritance | ||
Message: Resolution error: Invalid scalar inheritance base type http://a.ml/vocabularies/shapes#number < http://www.w3.org/2001/XMLSchema#boolean | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/validations/production/inheritance.raml#/declares/shape/NumberOrString/property/name/union/name/2 | ||
Property: http://a.ml/vocabularies/shapes#inherits | ||
Range: [(48,14)-(48,20)] | ||
Location: file://amf-cli/shared/src/test/resources/validations/production/inheritance.raml | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/resolution#invalid-type-inheritance | ||
Message: Resolution error: Invalid scalar inheritance base type http://www.w3.org/2001/XMLSchema#string < http://a.ml/vocabularies/shapes#number | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/validations/production/inheritance.raml#/declares/shape/NumberOrString/property/name/union/name/4 | ||
Property: http://a.ml/vocabularies/shapes#inherits | ||
Range: [(48,21)-(48,27)] | ||
Location: file://amf-cli/shared/src/test/resources/validations/production/inheritance.raml | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/resolution#invalid-type-inheritance | ||
Message: Resolution error: Invalid scalar inheritance base type http://www.w3.org/2001/XMLSchema#string < http://www.w3.org/2001/XMLSchema#boolean | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/validations/production/inheritance.raml#/declares/shape/NumberOrString/property/name/union/name/5 | ||
Property: http://a.ml/vocabularies/shapes#inherits | ||
Range: [(48,21)-(48,27)] | ||
Location: file://amf-cli/shared/src/test/resources/validations/production/inheritance.raml |