swagger-to-graphql icon indicating copy to clipboard operation
swagger-to-graphql copied to clipboard

Swagger to GraphQL API adapter

Results 38 swagger-to-graphql issues
Sort by recently updated
recently updated
newest added

Hi, I've used the generator but can't really find a way to not include the headers in the schema. I've tried merging the headers from context but the schema still...

Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.8.4 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 2.8.8 (2020-02-29) Bug Fixes #61 & #65...

dependencies

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. Changelog Sourced from y18n's changelog. Change Log All notable changes to this project will be documented in this file. See standard-version for commit guidelines....

dependencies

# Summary When I give execute the following command: ``` npx swagger-to-graphql --swagger-schema=https://petstore.swagger.io/v2/swagger.json ``` There is an exception thrown: ``` Cannot find module 'graphql' Require stack: - C:\Users\Vadim\AppData\Roaming\npm-cache\_npx\22428\node_modules\swagger-to-graphql\lib\index.js - C:\Users\Vadim\AppData\Roaming\npm-cache\_npx\22428\node_modules\swagger-to-graphql\bin\swagger-to-graphql...

``` { "resource": "/C:/Users/User/Documents/Sources/swagger-to-graphql/src/typeMap.ts", "owner": "typescript", "code": "2322", "severity": 8, "message": "Type '() => string' is not assignable to type 'GraphQLInputFieldConfigMap | (() => GraphQLInputFieldConfigMap) | GraphQLFieldConfigMap | (() =>...

Floats in swagger spec are being converted to String in graphql. Steps to reproduce: `npx swagger-to-graphql --swagger-schema=swagger_schema.yaml > ./types.graphql` swagger_schema.yaml ```yaml swagger: "2.0" info: version: 1.1.0 title: Test server basePath:...

``` TypeError: Cannot convert undefined or null to object at Function.keys () at Object.exports.getSuccessResponse (C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\swagger.js:13:30) at C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\swagger.js:185:35 at Array.forEach () at C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\swagger.js:158:28 at Array.forEach () at Object.exports.getAllEndPoints (C:\Users\alice\AppData\Roaming\npm-cache\_npx\36204\node_modules\swagger-to-graphql\lib\swagger.js:156:31) at Object....

`GraphQLEnumType` could be generated when the JSON schema `enum` property is found.

enhancement