{"_id":"tmp-graphql-config-extension-openapi","_rev":"1-6ae32ba6e0e0bed97c2ac7a4e51daa57","name":"tmp-graphql-config-extension-openapi","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.7":{"name":"tmp-graphql-config-extension-openapi","version":"1.0.7","main":"dist/index.js","typings":"dist/index.d.ts","license":"MIT","dependencies":{"@kbrandwijk/swagger-to-graphql":"2.4.3","graphql-config":"2.2.1"},"devDependencies":{"@types/graphql":"0.12.4","@types/node":"9.4.6","graphql":"0.13.1","ts-node":"4.1.0","typescript":"2.7.1"},"scripts":{"test":"cd src/example && ts-node test.ts","prepare":"npm run build","build":"rm -rf dist && tsc -d","semantic-release":"semantic-release"},"repository":{"type":"git","url":"git+https://github.com/graphql-config/graphql-config-extension-openapi.git"},"gitHead":"540058751ad2af9a415bf0a87f4deb3e5e6c8bb9","description":"[![CircleCI](https://circleci.com/gh/graphql-config/graphql-config-extension-openapi.svg?style=shield)](https://circleci.com/gh/graphql-config/graphql-config-extension-openapi) [![npm version](https://badge.fury.io/js/graphql-config-extension-openapi.svg)","bugs":{"url":"https://github.com/graphql-config/graphql-config-extension-openapi/issues"},"homepage":"https://github.com/graphql-config/graphql-config-extension-openapi#readme","_id":"tmp-graphql-config-extension-openapi@1.0.7","_npmVersion":"6.4.1","_nodeVersion":"8.11.3","_npmUser":{"name":"timsuchanek","email":"tim.suchanek@gmail.com"},"dist":{"integrity":"sha512-NQPUaywaVC2hzWkBBsTX3sV2XfxU0mc409rJyrA7iCu5DSTjMLUqI+U4KJVSy/Ltp0zgbWMWua471R7zMql9Pw==","shasum":"e651552bf6c57e473b088434940aba2b757c2b4c","tarball":"https://registry.npmjs.org/tmp-graphql-config-extension-openapi/-/tmp-graphql-config-extension-openapi-1.0.7.tgz","fileCount":9,"unpackedSize":16447,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2bN5CRA9TVsSAnZWagAATpMP/2CsC3dhW8VgrQyHNL7H\njkzfDC9jXMkd8KDPOd/1JBz/t/xHJ7kp8qRGsJ8or4cyUHbDUGq1sjq6EJ3d\njKXsrXnNnwIq4b4h4OCoP259hCHSrUPHJUN0hQyoPpTjP/V3dA/L+aNRq2Zr\na1+Aq6F6h0yvbGYdZv68nBKgtw/gjDXeNZoLhOnVWW3ez/EiWHsIwtof5Nag\nHl86/DzxFZKWV1KcYOE4WxdtUzrOUIC2vOwDMBMu2VDTNWmP4uuP+Cq4MyqB\ndg128QK3DT9nNR5cYTILKIP4fD20K6wGlb2KwaE1pZYeM0oCDRba7/kko9B+\nyTVn5lxfjMgcoi1FYE9FDfGWYH/0Zm/JCi0GMWTzNaWlsJKYCVXDpiDE5oif\n4DGeSSEN1PYmaaAkbS7ZUzICeeWOXzpdRMneoxywGM7I1IGCiK3jDCXHmzwP\n1NGM0GtyBJxZLAb+/6q2onEzBnSYlgajcG9eNGzX8Vh3JN5WFQI3ZT1aa6lh\ne/Z0ACee2qhl5XCdHSf34by6ZKlXQDQmHLZvtWB64LaNCXCAiN4kM67R2hP+\n0poO50bxaL3c/wueJtephVtcKakVinuE2NqcF6OCcUxlmHVYg78plc9HBV1O\ndVlI828IVDjb33NsHqIU3z9jCesWX6hF+YRVN2j+LElFA9s/IDHOvcbgcvum\nOSHR\r\n=5w0O\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHGCU0ThtBIEECl90QrjLGqvElMmAWSKQOVlw2WrPR9tAiBW3ZbrTrCTnEI6Lfd5/zhC8zQ9JfXJqfUer9FFPf7jjg=="}]},"maintainers":[{"name":"timsuchanek","email":"tim.suchanek@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tmp-graphql-config-extension-openapi_1.0.7_1540993913039_0.5575125519369089"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-31T13:51:53.039Z","1.0.7":"2018-10-31T13:51:53.183Z","modified":"2022-05-21T23:20:49.187Z"},"maintainers":[{"name":"timsuchanek","email":"tim.suchanek@gmail.com"}],"description":"[![CircleCI](https://circleci.com/gh/graphql-config/graphql-config-extension-openapi.svg?style=shield)](https://circleci.com/gh/graphql-config/graphql-config-extension-openapi) [![npm version](https://badge.fury.io/js/graphql-config-extension-openapi.svg)","homepage":"https://github.com/graphql-config/graphql-config-extension-openapi#readme","repository":{"type":"git","url":"git+https://github.com/graphql-config/graphql-config-extension-openapi.git"},"bugs":{"url":"https://github.com/graphql-config/graphql-config-extension-openapi/issues"},"license":"MIT","readme":"# graphql-config-extension-openapi\n\n[![CircleCI](https://circleci.com/gh/graphql-config/graphql-config-extension-openapi.svg?style=shield)](https://circleci.com/gh/graphql-config/graphql-config-extension-openapi) [![npm version](https://badge.fury.io/js/graphql-config-extension-openapi.svg)](https://badge.fury.io/js/graphql-config-extension-openapi)\n\nInjects endpoints into a GraphQL Config instance based on a given OpenAPI definition to retrieve the schema.\n\n## Usage in `.graphqlconfig.yml`\n```yml\nprojects:\n  petstore:\n    extensions:\n      openapi: \n        definition: petstore.json\n```\n\n## Usage in Node.js\n\n```ts\nimport {patchEndpointsToConfig} from 'graphql-config-extension-openapi'\nimport {getGraphQLConfig, GraphQLConfigData} from 'graphql-config'\n\nconst config: GraphQLConfigData = getGraphQLConfig().config\nconst patchedConfig: GraphQLConfigData = patchEndpointsToConfig(config, process.cwd())\n```\n\n## Current Usages\nThis is currently being used in [graphql-cli](https://github.com/graphql-cli/graphql-cli) to provide `get-schema` functionality for OpenAPI endpoints.\n","readmeFilename":"README.md"}