Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #277 from go-dummy/feat/parse-graphql
Browse files Browse the repository at this point in the history
feat(parse): add check graphql schema file format
  • Loading branch information
sashamelentyev authored Jan 25, 2022
2 parents 64fddf6 + f6acd25 commit 015730d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion internal/parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func Parse(path string) (api.API, error) {

return b.Build()
case GraphQL:
panic("Not implemented")
return api.API{}, nil
}

return api.API{}, nil
Expand Down
6 changes: 6 additions & 0 deletions internal/parse/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ func TestGetSpecType(t *testing.T) {
Path: "./testdata/api.raml",
},
},
{
name: "",
path: "./testdata/schema.graphql",
want: parse.GraphQL,
err: nil,
},
}

for _, tc := range tests {
Expand Down
Empty file.

0 comments on commit 015730d

Please sign in to comment.