Skip to content

Commit

Permalink
Merge pull request #995 from CircleCI-Public/fix/fix-orb-validation
Browse files Browse the repository at this point in the history
fix: Remove typo in introspection query
  • Loading branch information
JulesFaucherre authored Aug 10, 2023
2 parents 828c70a + 048befc commit 5f720d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/orb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func NewClient(config *settings.Config) (Client, error) {

clientVersion, err := detectClientVersion(gql)
if err != nil {
return &v1Client{gql}, nil
return nil, err
}

switch clientVersion {
Expand Down Expand Up @@ -74,7 +74,7 @@ type OrbIntrospectionResponse struct {

func orbQueryHandleOwnerId(gql *graphql.Client) (bool, error) {
query := `query IntrospectionQuery {
_schema {
__schema {
queryType {
fields(includeDeprecated: true) {
name
Expand Down
2 changes: 1 addition & 1 deletion cmd/orb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3713,7 +3713,7 @@ func mockOrbIntrospection(isValid bool, token string, tempSettings *clitest.Temp

requestStruct := map[string]interface{}{
"query": `query IntrospectionQuery {
_schema {
__schema {
queryType {
fields(includeDeprecated: true) {
name
Expand Down

0 comments on commit 5f720d9

Please sign in to comment.