Skip to content

Commit

Permalink
[debate] breaking but correct changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nschejtman committed Aug 25, 2023
1 parent c4faf68 commit fbf7df7
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 29 deletions.
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
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

0 comments on commit fbf7df7

Please sign in to comment.