-
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.
W-11046889: validate empty definitions
- Loading branch information
arielmirra
committed
Jul 19, 2022
1 parent
0ab74dd
commit 743b6c5
Showing
10 changed files
with
151 additions
and
17 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
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 |
---|---|---|
|
@@ -7,4 +7,4 @@ type Query { | |
} | ||
|
||
enum Season { | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-enum.api.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/graphql/tck/apis/invalid/empty-enum.api.graphql | ||
Profile: GraphQL | ||
Conforms: false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/parser#empty-enum | ||
Message: Enum definitions must have at least one value | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-enum.api.graphql#/declares/scalar/Season | ||
Property: | ||
Range: [(9,0)-(9,11)] | ||
Location: |
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
14 changes: 14 additions & 0 deletions
14
amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-input-type.api.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/graphql/tck/apis/invalid/empty-input-type.api.graphql | ||
Profile: GraphQL | ||
Conforms: false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition | ||
Message: Input Type definitions must have at least one field | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-input-type.api.graphql#/declares/shape/InputType | ||
Property: http://www.w3.org/ns/shacl#property | ||
Range: [(14,0)-(14,15)] | ||
Location: |
14 changes: 14 additions & 0 deletions
14
amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-interface.api.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/graphql/tck/apis/invalid/empty-interface.api.graphql | ||
Profile: GraphQL | ||
Conforms: false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition | ||
Message: Interface definitions must have at least one field | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-interface.api.graphql#/declares/shape/HasId | ||
Property: http://www.w3.org/ns/shacl#property | ||
Range: [(13,0)-(13,15)] | ||
Location: |
14 changes: 14 additions & 0 deletions
14
amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-object.api.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/graphql/tck/apis/invalid/empty-object.api.graphql | ||
Profile: GraphQL | ||
Conforms: false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/parser#empty-definition | ||
Message: Type definitions must have at least one field | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-object.api.graphql#/declares/shape/Person | ||
Property: http://www.w3.org/ns/shacl#property | ||
Range: [(9,0)-(9,11)] | ||
Location: |
14 changes: 14 additions & 0 deletions
14
amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-union.api.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/graphql/tck/apis/invalid/empty-union.api.graphql | ||
Profile: GraphQL | ||
Conforms: false | ||
Number of results: 1 | ||
|
||
Level: Violation | ||
|
||
- Constraint: http://a.ml/vocabularies/amf/parser#empty-union | ||
Message: Union definitions must have at least one value | ||
Severity: Violation | ||
Target: file://amf-cli/shared/src/test/resources/graphql/tck/apis/invalid/empty-union.api.graphql#/declares/union/SearchResult | ||
Property: | ||
Range: [(19,0)-(19,20)] | ||
Location: |
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