Skip to content

Commit

Permalink
Update TCK with input types & custom scalars
Browse files Browse the repository at this point in the history
  • Loading branch information
nschejtman committed Apr 20, 2022
1 parent 25d22fc commit 40c96ba
Show file tree
Hide file tree
Showing 14 changed files with 328 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/inexsistent-extension-scalar.api.graphql
Profile: GraphQL
Conforms: false
Number of results: 1

Level: Violation

- Constraint: http://a.ml/vocabularies/amf/core#unresolved-reference
Message: Unresolved reference 'Date'
Severity: Violation
Target: null/nullwrapper/unresolved
Property:
Range: [(6,10)-(6,10)]
Location: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/inexsistent-extension-scalar.api.graphql
Conforms: true
Number of results: 0
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/override-directive-extension-scalar.api.graphql
Profile: GraphQL
Conforms: false
Number of results: 1

Level: Violation

- Constraint: http://a.ml/vocabularies/amf/core#unresolved-reference
Message: Unresolved reference 'Date'
Severity: Violation
Target: null/nullwrapper/unresolved
Property:
Range: [(6,10)-(6,10)]
Location: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/override-directive-extension-scalar.api.graphql
Conforms: true
Number of results: 0
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
ModelId: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/union-invalid-members.api.graphql
Profile: GraphQL
Conforms: false
Number of results: 2
Number of results: 1

Level: Violation

- Constraint: http://a.ml/vocabularies/amf/core#unresolved-reference
Message: Unresolved reference 'Scalar'
Severity: Violation
Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/union-invalid-members.api.graphql/union/default-union/unresolved
Property:
Range:
Location: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/union-invalid-members.api.graphql

- Constraint: http://a.ml/vocabularies/amf/core#unresolved-reference
Message: Unresolved reference 'Union'
Severity: Violation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,23 @@
]
},
{
"@id": "null/nullwrapper/unresolved",
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql/scalar/Date/link-1068167573",
"@type": [
"http://a.ml/vocabularies/shapes#ScalarShape",
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
"http://a.ml/vocabularies/shapes#Shape",
"http://a.ml/vocabularies/document#DomainElement"
],
"http://a.ml/vocabularies/document#link-target": [
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql/scalar/Date"
}
],
"http://a.ml/vocabularies/document#link-label": [
{
"@value": "Date"
}
]
}
]
Expand Down Expand Up @@ -163,6 +174,33 @@
}
]
}
],
"http://a.ml/vocabularies/document#declares": [
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/custom-scalar.api.graphql/scalar/Date",
"@type": [
"http://a.ml/vocabularies/shapes#ScalarShape",
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
"http://a.ml/vocabularies/shapes#Shape",
"http://a.ml/vocabularies/document#DomainElement"
],
"http://www.w3.org/ns/shacl#datatype": [
{
"@id": "http://www.w3.org/2001/XMLSchema#string"
}
],
"http://a.ml/vocabularies/shapes#format": [
{
"@value": "Date"
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "Date"
}
]
}
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,11 @@
]
}
],
"http://a.ml/vocabularies/shapes#inputOnly": [
{
"@value": true
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "InputType"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,23 @@
]
},
{
"@id": "null/nullwrapper/unresolved",
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql/scalar/Date/link-1068167573",
"@type": [
"http://a.ml/vocabularies/shapes#ScalarShape",
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
"http://a.ml/vocabularies/shapes#Shape",
"http://a.ml/vocabularies/document#DomainElement"
],
"http://a.ml/vocabularies/document#link-target": [
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql/scalar/Date"
}
],
"http://a.ml/vocabularies/document#link-label": [
{
"@value": "Date"
}
]
}
]
Expand Down Expand Up @@ -163,6 +174,33 @@
}
]
}
],
"http://a.ml/vocabularies/document#declares": [
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/extension-scalars.api.graphql/scalar/Date",
"@type": [
"http://a.ml/vocabularies/shapes#ScalarShape",
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
"http://a.ml/vocabularies/shapes#Shape",
"http://a.ml/vocabularies/document#DomainElement"
],
"http://www.w3.org/ns/shacl#datatype": [
{
"@id": "http://www.w3.org/2001/XMLSchema#string"
}
],
"http://a.ml/vocabularies/shapes#format": [
{
"@value": "Date"
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "Date"
}
]
}
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,11 @@
]
}
],
"http://a.ml/vocabularies/shapes#inputOnly": [
{
"@value": true
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "PersonInput"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@
]
}
],
"http://a.ml/vocabularies/shapes#inputOnly": [
{
"@value": true
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "InputType"
Expand Down Expand Up @@ -299,6 +304,31 @@
]
}
]
},
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-directive-arguments.graphql/scalar/Pepe",
"@type": [
"http://a.ml/vocabularies/shapes#ScalarShape",
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
"http://a.ml/vocabularies/shapes#Shape",
"http://a.ml/vocabularies/document#DomainElement"
],
"http://www.w3.org/ns/shacl#datatype": [
{
"@id": "http://www.w3.org/2001/XMLSchema#string"
}
],
"http://a.ml/vocabularies/shapes#format": [
{
"@value": "Pepe"
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "Pepe"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,23 @@
],
"http://a.ml/vocabularies/shapes#range": [
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.graphql#/shape/InputType/property/customScalarField/unresolved",
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.graphql/scalar/Pepe/link-554783805",
"@type": [
"http://a.ml/vocabularies/shapes#ScalarShape",
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
"http://a.ml/vocabularies/shapes#Shape",
"http://a.ml/vocabularies/document#DomainElement"
],
"http://a.ml/vocabularies/document#link-target": [
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.graphql/scalar/Pepe"
}
],
"http://a.ml/vocabularies/document#link-label": [
{
"@value": "Pepe"
}
]
}
],
Expand All @@ -330,6 +341,11 @@
]
}
],
"http://a.ml/vocabularies/shapes#inputOnly": [
{
"@value": true
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "InputType"
Expand Down Expand Up @@ -411,6 +427,31 @@
]
}
]
},
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-fields.graphql/scalar/Pepe",
"@type": [
"http://a.ml/vocabularies/shapes#ScalarShape",
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
"http://a.ml/vocabularies/shapes#Shape",
"http://a.ml/vocabularies/document#DomainElement"
],
"http://www.w3.org/ns/shacl#datatype": [
{
"@id": "http://www.w3.org/2001/XMLSchema#string"
}
],
"http://a.ml/vocabularies/shapes#format": [
{
"@value": "Pepe"
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "Pepe"
}
]
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@
]
}
],
"http://a.ml/vocabularies/shapes#inputOnly": [
{
"@value": true
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "InputType"
Expand Down Expand Up @@ -698,12 +703,23 @@
],
"http://a.ml/vocabularies/shapes#schema": [
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql#/shape/Interface/queryCustomScalar/request/parameter/input_/unresolved",
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql/scalar/Pepe/link--2038257609",
"@type": [
"http://a.ml/vocabularies/shapes#ScalarShape",
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
"http://a.ml/vocabularies/shapes#Shape",
"http://a.ml/vocabularies/document#DomainElement"
],
"http://a.ml/vocabularies/document#link-target": [
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql/scalar/Pepe"
}
],
"http://a.ml/vocabularies/document#link-label": [
{
"@value": "Pepe"
}
]
}
]
Expand Down Expand Up @@ -862,6 +878,31 @@
]
}
]
},
{
"@id": "file://amf-cli/shared/src/test/resources/graphql/tck/apis/valid/is-input-type-interface-arguments.graphql/scalar/Pepe",
"@type": [
"http://a.ml/vocabularies/shapes#ScalarShape",
"http://a.ml/vocabularies/shapes#AnyShape",
"http://www.w3.org/ns/shacl#Shape",
"http://a.ml/vocabularies/shapes#Shape",
"http://a.ml/vocabularies/document#DomainElement"
],
"http://www.w3.org/ns/shacl#datatype": [
{
"@id": "http://www.w3.org/2001/XMLSchema#string"
}
],
"http://a.ml/vocabularies/shapes#format": [
{
"@value": "Pepe"
}
],
"http://www.w3.org/ns/shacl#name": [
{
"@value": "Pepe"
}
]
}
]
}
Expand Down
Loading

0 comments on commit 40c96ba

Please sign in to comment.