{"_id":"@anvilco/graphql-2-json-schema","_rev":"12-d75309b20c5070422b3e89a954a643d3","name":"@anvilco/graphql-2-json-schema","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.2":{"name":"@anvilco/graphql-2-json-schema","version":"0.0.2","author":{"name":"Charly POLY","email":"cpoly55@gmail.com"},"license":"MIT","_id":"@anvilco/graphql-2-json-schema@0.0.2","maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"anvilbot","email":"services@useanvil.com"},{"name":"ralbayaty","email":"richard@useanvil.com"},{"name":"newhouse","email":"c.newhouse@gmail.com"},{"name":"winggo","email":"winggo.tse@gmail.com"},{"name":"fostimus","email":"derekfoster94@gmail.com"}],"dist":{"shasum":"f59a90a3360ccc6935b09cd752dc9e3cfce82fc8","tarball":"https://registry.npmjs.org/@anvilco/graphql-2-json-schema/-/graphql-2-json-schema-0.0.2.tgz","fileCount":35,"integrity":"sha512-oxw9rdWo/IPvWNjrYV0pK8DDkhsUtNTV+qBwH7h8KjzbhAONtR7dEmYVnQ02bKOFGg/N79rurora3CLDDheNqw==","signatures":[{"sig":"MEQCICi6XJZ2bGfVUxxY2x+5CzAMVCpnl3xgzMsYd+bgt5TSAiB7zRJii0oYfZz2pzgHporkOTK1byY8I5wlcD62Z+ht1Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":86345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhQ4UHCRA9TVsSAnZWagAA9p0P/1CPsMklWkvooRFlyPvi\nILDz8e66vqD3JWCsNlmFxM3pXAhDYeOKSfNjJmNYREiDOSWVOcyZqEbWvRia\n6GYHnDYrKq6BLkj/GZjsrNX96+SosuhA+9YAMhsIcuSeGOmDYnAaGrKPJE8j\n2VXeeL09aDY5vy/iZsiaJBPx5l9zcug6tOFjeYpccjxVjn7t0W6jyAIu/KZz\n+46JEHqn8ZBzB4YXw+LWq0Leot1DqOUKwviDKx6zSzrsvOGu/lLS3F/huh4Z\nkfyS9oXXg/n5LjV6eDRXTcFGXvFXgGFNhkXCVKkVwatvbKTsCW37X4itCjgZ\n2+3RsWwgI5et+ON7Yn+PMoTe1oe3N1wK7PZtMVfJNbDVzjxzPd00AVu/yLSm\nSsx6usH/WyIJl2QDiy+4hfYNt7571V/wltrbea474PmuQfoGKK985TLynltx\nTv4/343ey87pYXJgf9Umzk4HTSc2FkPWrhH49nNNUxQ8cpVk7NtnU3xYWJqW\nvxhSdB1et2jt0AKIpkgML+UMFgvbY70xTiOUWCcm9Dp7R8EShZyKnH9WnvQF\n+xkZU8SSLADHZi0mQqSem2vBKxqMKgkzwTLNemaLr/BWSuCmBWgt2WvAJYpM\ngtu0nsyJgr8w7IOg7E5R/1TZidawagvs+5jD8GEMAaUE2PV2UtlmZNB/iEzN\nmebz\r\n=++Ji\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/([^\\.d]*)|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"testEnvironment":"node","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"dist/index.js","engines":{"node":">=8"},"scripts":{"test":"jest","prepare":"npx tsc","test:watch":"nodemon -x 'npm run test'","prettier:check":"prettier -c \"**/*.ts\"","prettier:format":"prettier -w \"**/*.ts\"","generateReadmeExample":"npx ts-node doc-exampleGenerator.ts"},"_npmUser":{"name":"newhouse","email":"c.newhouse@gmail.com"},"repository":{"url":"git@github.com:anvilco/graphql-to-json-schema.git","type":"git"},"description":"`graphql-2-json-schema` package","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Charly POLY\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"lodash":"^4.17.20"},"_hasShrinkwrap":false,"devDependencies":{"ajv":"^7.0.3","jest":"^26.6.3","tslint":"^5.20.1","graphql":"^15.4.0","nodemon":"^2.0.12","ts-jest":"^26.4.4","prettier":"^2.2.1","@types/ajv":"^1.0.0","typescript":"^4.1.3","@types/jest":"^26.0.20","@types/node":"^14.14.21","@types/lodash":"^4.14.168","standard-version":"^9.1.0","@types/json-schema":"^7.0.6"},"_npmOperationalInternal":{"tmp":"tmp/graphql-2-json-schema_0.0.2_1631814919074_0.6649164027862893","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@anvilco/graphql-2-json-schema","version":"0.0.3","author":{"name":"Charly POLY","email":"cpoly55@gmail.com"},"license":"MIT","_id":"@anvilco/graphql-2-json-schema@0.0.3","maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"anvilbot","email":"services@useanvil.com"},{"name":"ralbayaty","email":"richard@useanvil.com"},{"name":"newhouse","email":"c.newhouse@gmail.com"},{"name":"winggo","email":"winggo.tse@gmail.com"},{"name":"fostimus","email":"derekfoster94@gmail.com"}],"dist":{"shasum":"6df0e9f89585efa09e0cf38b0321cd2b9c4c883e","tarball":"https://registry.npmjs.org/@anvilco/graphql-2-json-schema/-/graphql-2-json-schema-0.0.3.tgz","fileCount":35,"integrity":"sha512-7x49xeOT9BCshgPok+Q+79p9XrS4Nxyjjk7NAz0TcsAzgWH86L9hpqpvJL8YqWk7+m9VyBemZVoVCUgI5t3KFQ==","signatures":[{"sig":"MEUCIQDcEuaC3ku6woN64J45Sz6uTZR9NRIKvYg7VHS/XqNEbwIge12GTJ/73ltSTkMmgOG55OFZOR0bNScTCsVM9YZ1+q8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":91403,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFeGCRA9TVsSAnZWagAA4EkP/0btkMi0bVSMrBWQKUeB\nkLVX8PYRVCh0VaELPzs2A/n0dzoD/xKR/Zzb+iH/NdTn5gJcM1I85Ti9Efw3\n1Jp03c9b8VWzxoLVoJrH3iiwrFYInKfkcL5MsVw/Ax6XS1N0lgYI3Dmz8DjF\nCavenyhLVmOmrhuikJ1zBucXZ8VvU3ReOp59zPYqkKwnlYEYydOTWjYXTgvG\nJfW+/sgiuylzc6uMIU4r8ThoNBVxpwUW7wOhAQ+PXeIVJQNKS4dbXsdUjgjh\nJ1tn4eNMfjm9vTn9IVY9J1j5FKBd81jsjRYaIJM8nGBQd8Xs5OUNo3xhR8mr\njUHbQStkL854Xd4GjNc8INYjN3BHR47bfIhE2Tt1UQ4lX3QP5ZvJX5wJ+KuU\nP1tEckHDy8DkBD+7Gl1DjPf6U2fdVEc9y0MWoMWF9F8Trz/oJGcnH5YnwMxW\ndo6Cy4yCa7TtkbOs8+2wW49sS/OwXeOnmRNDXhZML7ydnbpyoIBiha41/gFL\nrS7odZi6vJHLyz/8yTWlRzBYNFY6NQS2ePi9fGCt6DYoSOgUcreACWLIwAfy\nWGgtIDFEAI5rPK9F2v0x22n6SNwzQTkz3WJjgh2wDW0zVxDla/z+Fz45Droo\nXkx0ZLhyWHrkRXfSIYDxY0m8A2lryULnMNivpQyfQ0mRtIyVIFgt3BEefL7c\nyCLd\r\n=/zTL\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/([^\\.d]*)|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"testEnvironment":"node","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"dist/index.js","engines":{"node":">=8"},"scripts":{"test":"jest","prepare":"npx tsc","test:watch":"nodemon -x 'npm run test'","prettier:check":"prettier -c \"**/*.ts\"","prettier:format":"prettier -w \"**/*.ts\"","generateReadmeExample":"npx ts-node doc-exampleGenerator.ts"},"_npmUser":{"name":"newhouse","email":"c.newhouse@gmail.com"},"repository":{"url":"git@github.com:anvilco/graphql-to-json-schema.git","type":"git"},"description":"`graphql-2-json-schema` package","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Charly POLY\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"lodash":"^4.17.20"},"_hasShrinkwrap":false,"devDependencies":{"ajv":"^7.0.3","jest":"^26.6.3","tslint":"^5.20.1","graphql":"^15.4.0","nodemon":"^2.0.12","ts-jest":"^26.4.4","prettier":"^2.2.1","@types/ajv":"^1.0.0","typescript":"^4.1.3","@types/jest":"^26.0.20","@types/node":"^14.14.21","@types/lodash":"^4.14.168","standard-version":"^9.1.0","@types/json-schema":"^7.0.6"},"_npmOperationalInternal":{"tmp":"tmp/graphql-2-json-schema_0.0.3_1631892281600_0.5850309706957046","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@anvilco/graphql-2-json-schema","version":"0.0.4","author":{"name":"Charly POLY","email":"cpoly55@gmail.com"},"license":"MIT","_id":"@anvilco/graphql-2-json-schema@0.0.4","maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"anvilbot","email":"services@useanvil.com"},{"name":"ralbayaty","email":"richard@useanvil.com"},{"name":"newhouse","email":"c.newhouse@gmail.com"},{"name":"winggo","email":"winggo.tse@gmail.com"},{"name":"fostimus","email":"derekfoster94@gmail.com"}],"dist":{"shasum":"94220252a298e1ec5591c949d7f726f04d587534","tarball":"https://registry.npmjs.org/@anvilco/graphql-2-json-schema/-/graphql-2-json-schema-0.0.4.tgz","fileCount":35,"integrity":"sha512-PfIVtCXI9C9sepVyBBf5AtXy/kfrT1HENwk7GRp1SbWiy4yGNkFQPNhgPBIpsmIIVkthDzeQhxP+VsjJf255/Q==","signatures":[{"sig":"MEQCIA97LTAetFIEJ1XILhn1nJ+5hF5sI8Qo0THij5dAaGBFAiA4mynatfnvWGT/fxYuvzTx3nbd+E3VqrRd3HI1iQfr6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":95012,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBuROCRA9TVsSAnZWagAAOvUP/j+j/N3ag2Ul464qCWHA\npZxivFBOT/mYDLgf1MuSTDqy6fzfXsS3u9PRII3qhBr8ejMthmTJ4s0/+aMw\no4qKRB4HDtG6MgWGd+XA6zPWrqGPBzYBpb3JwL2QYgv2ltnWqd69XPdYyxm1\ns7Id0EoZZvwuMgL2mhm5brs88Ey8CV6EjlrWaNLdtxX62XfegTSZAMKUPMq4\nHcaqLmrSt1sQcifl33e/0a38dX2w+a7TsDL+UfmgtZFrevkIVHgOnwe7GCEi\nQY2edIuA7jwpWJsPw6VAdPrRA5PWQ9HmOkbWUvqiyszyQ4O5ZP0O12o58elG\nraOsZZiD1bnZ/5LISaJadAJLg+SWxQOfkGj/tcq1YeotNKmgjaH+BdHuigrq\ntt8SbsjZeUPNSBC9QBf0mkM3WwWn9NK6P0qpa/NOyzg6OaKl/ZIOv3S0bODu\naR57y9oaE+4yDroL9H/7dvM348CLmQmKIgQhmflGQ37y8FbcrHf488amv+Lw\nCibASpMdLqMP97yoNRiokZRalhMulkiJWcvhXS7fXHW18iJePwSKfT8rtxRb\n164duQA7yECgIRVgKar1eZNigi720mNof9kTevfmrsS1tuzBJHbixjFYUYms\n2aLnBqyxktsSNi0rb11ZNJervcge9y45xbkT8007h+lv3eK5xSRIaQEx5aJr\nVZFs\r\n=JTNO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/([^\\.d]*)|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"testEnvironment":"node","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"dist/index.js","engines":{"node":">=8"},"scripts":{"test":"jest","prepare":"npx tsc","test:watch":"nodemon -x 'npm run test'","prettier:check":"prettier -c \"**/*.ts\"","prettier:format":"prettier -w \"**/*.ts\"","generateReadmeExample":"npx ts-node doc-exampleGenerator.ts"},"_npmUser":{"name":"newhouse","email":"c.newhouse@gmail.com"},"repository":{"url":"git@github.com:wittydeveloper/graphql-to-json-schema.git","type":"git"},"description":"`graphql-2-json-schema` package","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Charly POLY\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"lodash":"^4.17.20"},"_hasShrinkwrap":false,"devDependencies":{"ajv":"7.0.3","jest":"26.6.3","tslint":"5.20.1","graphql":"15.4.0","nodemon":"2.0.12","ts-jest":"26.4.4","prettier":"2.2.1","@types/ajv":"1.0.0","typescript":"4.1.3","@types/jest":"26.0.20","@types/node":"14.14.21","@types/lodash":"4.14.168","standard-version":"9.1.0","@types/json-schema":"7.0.6"},"_npmOperationalInternal":{"tmp":"tmp/graphql-2-json-schema_0.0.4_1644618830216_0.2514130479935728","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@anvilco/graphql-2-json-schema","version":"0.0.5","author":{"name":"Charly POLY","email":"cpoly55@gmail.com"},"license":"MIT","_id":"@anvilco/graphql-2-json-schema@0.0.5","maintainers":[{"name":"benogle","email":"ogle.ben@gmail.com"},{"name":"anvilbot","email":"services@useanvil.com"},{"name":"ralbayaty","email":"richard@useanvil.com"},{"name":"newhouse","email":"c.newhouse@gmail.com"},{"name":"winggo","email":"winggo.tse@gmail.com"},{"name":"fostimus","email":"derekfoster94@gmail.com"}],"dist":{"shasum":"95643509252b7c0a32ecfd4ec21d07a740319526","tarball":"https://registry.npmjs.org/@anvilco/graphql-2-json-schema/-/graphql-2-json-schema-0.0.5.tgz","fileCount":35,"integrity":"sha512-lvGOyxqwbOetyJP6TLMj5M9VsBfZ3cRdo4nzc6z5+V4dmprPP6vjN8cvyxSWuJms8pWVDGTcN+80gPtlMeUW7w==","signatures":[{"sig":"MEUCIBcrVPvuixefDWNp2uFeNAbl1MO8RyulgikgoTKgv5wuAiEAwmPXmVX+eDI3IQp0yCKnwq9L5OtcGLZjnPQn6ZY51zY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":96539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiIlD7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7wRAAo1uc2oJuk5YrxGxLxFdR25iyOZnhTU/fYxFxA1XEVy9lbAdV\r\nujtJR0XPwftNyi6s/XPerF7fUE4iZor2ri+iuOJ5o2xzj6U6iPyx6/k7ujHr\r\nEeBPsknYrsamcwnoqwlMKjvsbXNtU+TkrDIzVe2w1qot5qUc89NM0nFRAB34\r\nQCBj1cWfSobop9efLkVkVvOAmLQmZ/WCPKBxiD9xOFIkHQF0/kjw+ecKuUll\r\n0uM2nbO/4DY+5EaspRLSg1I9zmHhAh62aMbQrKgWCpgFwxh3ouiGWO5Tqluq\r\nI/q4AvomtcgBgHT/TsZlbP5thYZgoZaVBSnl+HcIyO+qs+kB9dli4II+NlV/\r\nQh9okqoxtDMQveqGXwBQhqXaIlH8sjgyavaNA4v4+0bRjuvuqTTP6mZZiN2s\r\nwXRhJi08hlfduqZ64iIMPLB1VvWzzc6zqkLPy3co4fV77N78B8ECLssG9VVI\r\nYTGFfXRgR5OKkxxx+VS/GdAGUSE5zAku1f3aaZ/0ZMFRSvzhVF07QC3dTHfW\r\nYqQ2T6YKqGKwnVLYlywD0yTk+Jrx2fGtg4RjvadeU7UmpKribOvGFFzJ1Qgs\r\nsidMx0vMAn0R9T/LntrHh8sTeTKcU3ByUqn+ngOAp5tg/FTZMzUSM5ZlIVzH\r\nitUsWf0nXhAC/NR2VccQ4dcREqHzpZkMJG4=\r\n=MpeH\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/__tests__/([^\\.d]*)|(\\.|/)(test|spec))\\.(jsx?|tsx?)$","transform":{"^.+\\.tsx?$":"ts-jest"},"testEnvironment":"node","moduleFileExtensions":["ts","tsx","js","jsx","json","node"]},"main":"dist/index.js","engines":{"node":">=8"},"scripts":{"test":"jest","prepare":"npx tsc","test:watch":"nodemon -x 'npm run test'","prettier:check":"prettier -c \"**/*.ts\"","prettier:format":"prettier -w \"**/*.ts\"","generateReadmeExample":"npx ts-node doc-exampleGenerator.ts"},"_npmUser":{"name":"newhouse","email":"c.newhouse@gmail.com"},"repository":{"url":"git@github.com:anvilco/graphql-to-json-schema.git","type":"git"},"description":"Anvil's Fork of `graphql-2-json-schema` package","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018 Charly POLY\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"json5":"^2.2.0","lodash":"^4.17.20"},"_hasShrinkwrap":false,"devDependencies":{"ajv":"7.0.3","jest":"26.6.3","tslint":"5.20.1","graphql":"15.4.0","nodemon":"2.0.12","ts-jest":"26.4.4","prettier":"2.2.1","@types/ajv":"1.0.0","typescript":"4.1.3","@types/jest":"26.0.20","@types/node":"14.14.21","@types/lodash":"4.14.168","standard-version":"9.1.0","@types/json-schema":"7.0.6"},"_npmOperationalInternal":{"tmp":"tmp/graphql-2-json-schema_0.0.5_1646416122962_0.0355961923788779","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-09-16T17:55:19.073Z","modified":"2025-11-12T22:03:18.104Z","0.0.2":"2021-09-16T17:55:19.220Z","0.0.3":"2021-09-17T15:24:41.746Z","0.0.4":"2022-02-11T22:33:50.419Z","0.0.5":"2022-03-04T17:48:43.106Z"},"author":{"name":"Charly POLY","email":"cpoly55@gmail.com"},"license":"MIT","repository":{"url":"git@github.com:anvilco/graphql-to-json-schema.git","type":"git"},"description":"Anvil's Fork of `graphql-2-json-schema` package","maintainers":[{"email":"services@useanvil.com","name":"anvilbot"},{"email":"derekfoster94@gmail.com","name":"fostimus"},{"email":"manggit@gmail.com","name":"manggit"},{"email":"manggit@useanvil.com","name":"manggit_anvil"}],"readme":"# GraphQL Schema to JSON Schema [![npm version](https://badge.fury.io/js/graphql-2-json-schema.svg)](https://badge.fury.io/js/graphql-2-json-schema)\n\nAnvil's Fork of `graphql-2-json-schema` package\n\n-----------\n\nTransform a GraphQL Schema introspection file to a valid JSON Schema.\n\n## Usage\n\n```ts\nimport {\n    graphqlSync,\n    getIntrospectionQuery,\n    IntrospectionQuery\n} from 'graphql';\n\nimport { fromIntrospectionQuery } from 'graphql-2-json-schema';\n\nconst options = {\n  // Whether or not to ignore GraphQL internals that are probably not relevant\n  // to documentation generation.\n  // Defaults to `true`\n  ignoreInternals: true,\n  // Whether or not to properly represent GraphQL Lists with Nullable elements\n  // as type \"array\" with items being an \"anyOf\" that includes the possible\n  // type and a \"null\" type.\n  // Defaults to `false` for backwards compatibility, but in future versions\n  // the effect of `true` is likely going to be the default and only way. It is\n  // highly recommended that new implementations set this value to `true`.\n  nullableArrayItems: true\n}\n\n// schema is your GraphQL schema.\nconst introspection = graphqlSync(schema, getIntrospectionQuery()).data as IntrospectionQuery;\n\nconst jsonSchema = fromIntrospectionQuery(introspection, options);\n```\n\n## Example\n\n### Input\n\n```graphql\n  type Todo {\n      id: String!\n      name: String!\n      completed: Boolean\n      color: Color\n\n      \"A field that requires an argument\"\n      colors(\n        filter: [Color!]!\n      ): [Color!]!\n  }\n\n  type SimpleTodo {\n    id: String!\n    name: String!\n  }\n\n  union TodoUnion = Todo | SimpleTodo\n\n  input TodoInputType {\n      name: String!\n      completed: Boolean\n      color: Color=RED\n  }\n\n  enum Color {\n      \"Red color\"\n      RED\n      \"Green color\"\n      GREEN\n  }\n\n  type Query {\n      \"A Query with 1 required argument and 1 optional argument\"\n      todo(\n        id: String!,\n        \"A default value of false\"\n        isCompleted: Boolean=false\n      ): Todo\n\n      \"Returns a list (or null) that can contain null values\"\n      todos(\n        \"Required argument that is a list that cannot contain null values\"\n        ids: [String!]!\n      ): [Todo]\n  }\n\n  type Mutation {\n      \"A Mutation with 1 required argument\"\n      create_todo(\n        todo: TodoInputType!\n      ): Todo!\n\n      \"A Mutation with 2 required arguments\"\n      update_todo(\n        id: String!,\n        data: TodoInputType!\n      ): Todo!\n\n      \"Returns a list (or null) that can contain null values\"\n      update_todos(\n        ids: [String!]!\n        data: TodoInputType!\n      ): [Todo]\n  }\n```\n\n### Output\n\n```js\n// Output is from call to fromIntrospectionQuery with the following options:\nconst options = { nullableArrayItems: true }\n\n{\n  '$schema': 'http://json-schema.org/draft-06/schema#',\n  properties: {\n    Query: {\n      type: 'object',\n      properties: {\n        todo: {\n          description: 'A Query with 1 required argument and 1 optional argument',\n          type: 'object',\n          properties: {\n            return: { '$ref': '#/definitions/Todo' },\n            arguments: {\n              type: 'object',\n              properties: {\n                id: { '$ref': '#/definitions/String' },\n                isCompleted: {\n                  description: 'A default value of false',\n                  '$ref': '#/definitions/Boolean',\n                  default: false\n                }\n              },\n              required: [ 'id' ]\n            }\n          },\n          required: []\n        },\n        todos: {\n          description: 'Returns a list (or null) that can contain null values',\n          type: 'object',\n          properties: {\n            return: {\n              type: 'array',\n              items: {\n                anyOf: [ { '$ref': '#/definitions/Todo' }, { type: 'null' } ]\n              }\n            },\n            arguments: {\n              type: 'object',\n              properties: {\n                ids: {\n                  description: 'Required argument that is a list that cannot contain null values',\n                  type: 'array',\n                  items: { '$ref': '#/definitions/String' }\n                }\n              },\n              required: [ 'ids' ]\n            }\n          },\n          required: []\n        }\n      },\n      required: []\n    },\n    Mutation: {\n      type: 'object',\n      properties: {\n        create_todo: {\n          description: 'A Mutation with 1 required argument',\n          type: 'object',\n          properties: {\n            return: { '$ref': '#/definitions/Todo' },\n            arguments: {\n              type: 'object',\n              properties: { todo: { '$ref': '#/definitions/TodoInputType' } },\n              required: [ 'todo' ]\n            }\n          },\n          required: []\n        },\n        update_todo: {\n          description: 'A Mutation with 2 required arguments',\n          type: 'object',\n          properties: {\n            return: { '$ref': '#/definitions/Todo' },\n            arguments: {\n              type: 'object',\n              properties: {\n                id: { '$ref': '#/definitions/String' },\n                data: { '$ref': '#/definitions/TodoInputType' }\n              },\n              required: [ 'id', 'data' ]\n            }\n          },\n          required: []\n        },\n        update_todos: {\n          description: 'Returns a list (or null) that can contain null values',\n          type: 'object',\n          properties: {\n            return: {\n              type: 'array',\n              items: {\n                anyOf: [ { '$ref': '#/definitions/Todo' }, { type: 'null' } ]\n              }\n            },\n            arguments: {\n              type: 'object',\n              properties: {\n                ids: {\n                  type: 'array',\n                  items: { '$ref': '#/definitions/String' }\n                },\n                data: { '$ref': '#/definitions/TodoInputType' }\n              },\n              required: [ 'ids', 'data' ]\n            }\n          },\n          required: []\n        }\n      },\n      required: []\n    }\n  },\n  definitions: {\n    Todo: {\n      type: 'object',\n      properties: {\n        id: {\n          type: 'object',\n          properties: {\n            return: { '$ref': '#/definitions/String' },\n            arguments: { type: 'object', properties: {}, required: [] }\n          },\n          required: []\n        },\n        name: {\n          type: 'object',\n          properties: {\n            return: { '$ref': '#/definitions/String' },\n            arguments: { type: 'object', properties: {}, required: [] }\n          },\n          required: []\n        },\n        completed: {\n          type: 'object',\n          properties: {\n            return: { '$ref': '#/definitions/Boolean' },\n            arguments: { type: 'object', properties: {}, required: [] }\n          },\n          required: []\n        },\n        color: {\n          type: 'object',\n          properties: {\n            return: { '$ref': '#/definitions/Color' },\n            arguments: { type: 'object', properties: {}, required: [] }\n          },\n          required: []\n        },\n        colors: {\n          description: 'A field that requires an argument',\n          type: 'object',\n          properties: {\n            return: { type: 'array', items: { '$ref': '#/definitions/Color' } },\n            arguments: {\n              type: 'object',\n              properties: {\n                filter: {\n                  type: 'array',\n                  items: { '$ref': '#/definitions/Color' }\n                }\n              },\n              required: [ 'filter' ]\n            }\n          },\n          required: []\n        }\n      },\n      required: [ 'id', 'name', 'colors' ]\n    },\n    SimpleTodo: {\n      type: 'object',\n      properties: {\n        id: {\n          type: 'object',\n          properties: {\n            return: { '$ref': '#/definitions/String' },\n            arguments: { type: 'object', properties: {}, required: [] }\n          },\n          required: []\n        },\n        name: {\n          type: 'object',\n          properties: {\n            return: { '$ref': '#/definitions/String' },\n            arguments: { type: 'object', properties: {}, required: [] }\n          },\n          required: []\n        }\n      },\n      required: [ 'id', 'name' ]\n    },\n    TodoUnion: {\n      oneOf: [\n        { '$ref': '#/definitions/Todo' },\n        { '$ref': '#/definitions/SimpleTodo' }\n      ]\n    },\n    TodoInputType: {\n      type: 'object',\n      properties: {\n        name: { '$ref': '#/definitions/String' },\n        completed: { '$ref': '#/definitions/Boolean' },\n        color: { '$ref': '#/definitions/Color', default: 'RED' }\n      },\n      required: [ 'name' ]\n    },\n    Color: {\n      type: 'string',\n      anyOf: [\n        {\n          description: 'Red color',\n          enum: [ 'RED' ],\n          title: 'Red color'\n        },\n        {\n          description: 'Green color',\n          enum: [ 'GREEN' ],\n          title: 'Green color'\n        }\n      ]\n    },\n    String: {\n      description: 'The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.',\n      type: 'string',\n      title: 'String'\n    },\n    Boolean: {\n      description: 'The `Boolean` scalar type represents `true` or `false`.',\n      type: 'boolean',\n      title: 'Boolean'\n    }\n  }\n}\n```\n","readmeFilename":"README.md"}