diff --git a/internal/parse/parse.go b/internal/parse/parse.go index 84dbcf0..c62a349 100644 --- a/internal/parse/parse.go +++ b/internal/parse/parse.go @@ -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 diff --git a/internal/parse/parse_test.go b/internal/parse/parse_test.go index 61d637d..3974dcc 100644 --- a/internal/parse/parse_test.go +++ b/internal/parse/parse_test.go @@ -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 { diff --git a/internal/parse/testdata/schema.graphql b/internal/parse/testdata/schema.graphql new file mode 100644 index 0000000..e69de29