{"_id":"openapi-flattener","_rev":"5-e3211faf1acfb7123d3fb7e038bb4abe","name":"openapi-flattener","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"devDependencies":{"@types/json-schema-merge-allof":"^0.6.0","@types/minimist":"^1.2.1","@types/node":"^15.12.4","typescript":"^4.3.4"},"scripts":{"compile":"npx tsc -w"},"dependencies":{"json-schema-merge-allof":"^0.8.1","json-schema-ref-parser":"^9.0.9","minimist":"^1.2.5","node-yaml":"^4.0.1"},"name":"openapi-flattener","description":"Install: `npm install openapi-flattener --save`","version":"1.0.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/equinor/openapi-flattener.git"},"bin":{"openapi-flatter":"dist/flattener.js"},"keywords":["OpenApi","flattener","derefence","merge","spec","schema"],"author":{"name":"Henri Siik"},"license":"MIT","bugs":{"url":"https://github.com/equinor/openapi-flattener/issues"},"homepage":"https://github.com/equinor/openapi-flattener#readme","gitHead":"40c8d699b69ccfc46b1579521b8325d1cd6f9ce1","_id":"openapi-flattener@1.0.0","_nodeVersion":"12.21.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-RzJpK2brxRLFseNtmjpED6xbe6+OWJk19pcofBLWOOKBl5fQL484S4XFriESuF5XoS5jq77MyfqJ/VmOnFa4rA==","shasum":"5b52088ca80ea69f7e2cca44964486b7e2d790f7","tarball":"https://registry.npmjs.org/openapi-flattener/-/openapi-flattener-1.0.0.tgz","fileCount":4,"unpackedSize":6959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7DjNCRA9TVsSAnZWagAAqe4P/3c88sNHjR40avcY1rFb\nkRi4XjB0YZt7ZYeAEIUQodUj3plMo/rJqtn0nbACuOx6d8LRoKvLbO+ZmpNV\nQXu1yUd/xVdc9QxV8BUcVohcW/a/VYnKXCdqcwrE36SBhp06Cyi0dKAg1vGM\nqA9YPIxwnNJvx28x3CVox/9+E35/7AqzvHYPolC1IJF+Q7Zvu8aKeZBsazKn\nIug8xdjAre3bdMuOOpa0t3V2cj93fF+Zp/yZhLZY+rbOopj4a0qDDkv1Te9r\nGwH6AM7wXZWB5y+Wm7t46XRsymgL0pSIBnwnBckzD6eaa3ai+T7xAeoccTjI\n0ZtA9hTrBAF0PmqCBZngmZBlxmoIaQ9pPtIuavoVLavsXFRZBdFS1/HYXQ+Y\ntp0zZX8n4dGg4E+eB10H02QWzN9A0lonx4X8qxv3cvHVqkVWUI9pSnMGpwCL\nens021ykV4VwyPi5UQsHYV0C42dirrbRvjD2p/5Bs8feqyUPJOzdd8Kb93mi\n6lW+lXwvVVGfDM2i9eJxHyTVV0eOnwAhR613TKyHEfDfHZXiOKnVOzLCzPOi\nUthXaeE9GtWkGBL9Sc4LuonyTVqY2R36Z5akf25POSb0zQamU0JS85n7tIZq\nj0pA+lbHyy77v9gf2nlSwLzyN1pcbsO3IzDSy9xzhLME70+TOqOvYk6WtMxR\nZSCH\r\n=pXPK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3rH4dX7/bD557VsM0hjD+1ruDb8IfsMMt2wFLB930RgIhAPyS2eODBPcNM+GaiEIC0mYazqDSuMHQWI6h8Dpz/Pj8"}]},"_npmUser":{"name":"hsiieqn","email":"hsii@equinor.com"},"directories":{},"maintainers":[{"name":"hsiieqn","email":"hsii@equinor.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-flattener_1.0.0_1626093773023_0.1951877461743663"},"_hasShrinkwrap":false},"1.0.1":{"devDependencies":{"@types/json-schema-merge-allof":"^0.6.0","@types/minimist":"^1.2.1","@types/node":"^15.12.4","typescript":"^4.3.4"},"scripts":{"compile":"npx tsc -w"},"dependencies":{"json-schema-merge-allof":"^0.8.1","json-schema-ref-parser":"^9.0.9","minimist":"^1.2.5","node-yaml":"^4.0.1"},"name":"openapi-flattener","description":"Install: `npm install openapi-flattener --save`","version":"1.0.1","main":"index.js","engines":{"node":">=12.21.0"},"repository":{"type":"git","url":"git+https://github.com/equinor/openapi-flattener.git"},"bin":{"openapi-flatter":"dist/flattener.js"},"keywords":["OpenApi","flattener","derefence","merge","spec","schema"],"author":{"name":"Henri Siik"},"license":"MIT","bugs":{"url":"https://github.com/equinor/openapi-flattener/issues"},"homepage":"https://github.com/equinor/openapi-flattener#readme","gitHead":"c1e5ff63d348eca92b3c623a0d8e75735b5c4361","_id":"openapi-flattener@1.0.1","_nodeVersion":"12.21.0","_npmVersion":"7.18.1","dist":{"integrity":"sha512-jHQWMRqZ3YEsDLzZs0g0Q52tM1axYCZ//JLDnqTEs3tEvZvAFXyV/QnzARIjr6meV5foIwTjfDsB4y5zK8dlcw==","shasum":"ab78f4e1e90dd52676c6e3e94135a1b18fade52d","tarball":"https://registry.npmjs.org/openapi-flattener/-/openapi-flattener-1.0.1.tgz","fileCount":4,"unpackedSize":7003,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7DwRCRA9TVsSAnZWagAAYXcP/25R5V52tRObhrqvD0Eu\nMUPvbzB2m7epIfQawHAvxTtyHfodc9IGBu9gO8oa5Ev9hDGOhNmM6hHuVqr1\nCLUww9dnfcKKU8+83YI/I1e0Z/FugCttFsiggoHuF0KxV/te1pmeWYNPy2ti\nHyTFpKxZZlYeCglEMWxFQspZ/MDXxvHqEPPR9twc/2C9GmRPnwfVyrySCL+f\nOiW8jEUO4EhbLbszVvuG+8wrAO+0iR9OLNgkwPkr+1JJDghF0o+bvHmAXyVZ\nTS7E1DyQVqeNe2kbe/Y53C4ezwQRyXqI3QJixVbvoCz2riGpJcKiVeJrjwEO\n7rO1AWQPbrC9wjRTAm/YoL5JTu8uew1Eb7sHTCebtyvdpJhW+tVHlqe+bjmX\nrbBd90WF3MFAXRqc2YHBJxgzFXLn1m2+xXRVkilJ4pZcmWpHNsWSH5i3auNd\ngY7LpYKOxOHimHeBFsuSOPgKvFO31c4rcbDjwh7cQ4broUhGAJLU8LBnBrxM\n4/GT2GDFHdagbNHppxjSQMQHraPUpeIcOy8/QDXxtEwjsaenL3RrMKLmpRRV\nroz1QvXmhijb3zvWQ5HjsKmr/xrXZyfG5eQEMmjNHVDkeYbotIs/WmuAZf9F\nSE5FBGV1J7WfEGl6JKC/2ixMBpCMa1cs8Sy5esDH7RzCiXmESOMw3hrL/D4o\n3l2K\r\n=Krl+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqy6U6AvXy89u6r/jAPOTmND/GKVsXYG5cvC+xifLKIQIgKYOvQoqTq3/T3TKsWDjPndgqr7+p1KqrsHgDrQfuDcc="}]},"_npmUser":{"name":"hsiieqn","email":"hsii@equinor.com"},"directories":{},"maintainers":[{"name":"hsiieqn","email":"hsii@equinor.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-flattener_1.0.1_1626094609045_0.3629917393898896"},"_hasShrinkwrap":false},"1.0.2":{"devDependencies":{"@types/json-schema-merge-allof":"^0.6.0","@types/minimist":"^1.2.1","@types/node":"^15.12.4","typescript":"^4.3.4"},"scripts":{"compile":"npx tsc -w"},"dependencies":{"json-schema-merge-allof":"^0.8.1","json-schema-ref-parser":"^9.0.9","minimist":"^1.2.5","node-yaml":"^4.0.1"},"name":"openapi-flattener","description":"Install: `npm install openapi-flattener --save`","version":"1.0.2","main":"index.js","engines":{"node":">=12.21.0"},"repository":{"type":"git","url":"git+https://github.com/equinor/openapi-flattener.git"},"bin":{"openapi-flattener":"dist/flattener.js"},"keywords":["OpenApi","flattener","derefence","merge","spec","schema"],"author":{"name":"Henri Siik"},"license":"MIT","bugs":{"url":"https://github.com/equinor/openapi-flattener/issues"},"homepage":"https://github.com/equinor/openapi-flattener#readme","gitHead":"7c08bfdf599efc14270972aeb9075d47aa36142a","_id":"openapi-flattener@1.0.2","_nodeVersion":"12.21.0","_npmVersion":"7.19.1","dist":{"integrity":"sha512-cA1kOx0jb65pWDzkVjGwmsY6UwtUk8qKA5kiWnfLCYW7zw139orsCO8OEwNrLvkNgJxxMIwl9FLKzCJd8W06cA==","shasum":"2478fd6ebf1edfed8cc57431aa77fbc9a1367dbe","tarball":"https://registry.npmjs.org/openapi-flattener/-/openapi-flattener-1.0.2.tgz","fileCount":4,"unpackedSize":7025,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7D50CRA9TVsSAnZWagAACNMP/j3qwULjyV9Yc4A8IFta\nsKjra6OnA3X9jiL6ATVI3qF1a1/TD9cxsnzc9A8vheVS1y72aujvEVgLptDr\neBWdT9zZQ0Y7i9Mb39feJIEPlzGsg3UF1l3NvJWskvdxID9Q4+GWWy5Me530\nsEjFTn3HbAKzdOR+Y4GF18hzaqEH+BYuQAXBkouL6dA4jc9IznEjMQd9cLvp\nbPIOIAP0LaDfm9GQfCzkSPFFUx+uTfdBX7nicDvYG9Pen1XZB918um0HqQFa\nn8VNSHUzlNubiabLQuOWZS0eFkABQz6qMjmEbLhVbkucj7BbFlVlCc32UJF3\n+T5ct1L80YT8Ok0cIXJjbBw+akSUX+61L/4VcYt3+cH/cIvSJC7v/eckfwVY\ndboCqfJFeDiobusbKbcMdeuSqpaBriiux+LsmWxCf07xJEzXoa6spOwV4JAa\neQMu9r0VUBrEnN91DIvi71aA40XVrKqjcdD3Dxej2yr7NxY8yIsUzCC3+qD4\nRqpq/g9IO51GileSnL2QT8i10KdeHojElL2zFioRb3hPflKEuuflpuA1mOrZ\nxNjjVWRxpOOy/avXbsqf3oO1m4QglcV10lh9epsPoMaKB4GWiCkRhTqhZgso\npB3SZsZcroe1z4kQ7p5cZfAWpFTlkQg/zhxERfnaTvuXasSyhQ7ej5LbBTfy\nSy3G\r\n=Z1wR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjE64+mJxSGXr2eYiwMKYYrGcxO6Ur64ZOlvnp3MAv0QIhAPix1CDwIFDqunr09oOiHrIWkPTeJArsd6V2orltqlea"}]},"_npmUser":{"name":"hsiieqn","email":"hsii@equinor.com"},"directories":{},"maintainers":[{"name":"hsiieqn","email":"hsii@equinor.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-flattener_1.0.2_1626095219831_0.3101165086701225"},"_hasShrinkwrap":false},"1.0.3":{"devDependencies":{"@types/json-schema-merge-allof":"^0.6.0","@types/minimist":"^1.2.1","@types/node":"^15.12.4","typescript":"^4.3.4"},"scripts":{"compile":"npx tsc -w"},"dependencies":{"json-schema-merge-allof":"^0.8.1","json-schema-ref-parser":"^9.0.9","minimist":"^1.2.5","node-yaml":"^4.0.1"},"name":"openapi-flattener","description":"Install: `npm install openapi-flattener --save -g`","version":"1.0.3","main":"index.js","engines":{"node":">=12.21.0"},"repository":{"type":"git","url":"git+https://github.com/equinor/openapi-flattener.git"},"bin":{"openapi-flattener":"dist/flattener.js"},"keywords":["OpenApi","flattener","derefence","merge","spec","schema"],"author":{"name":"Henri Siik"},"license":"MIT","bugs":{"url":"https://github.com/equinor/openapi-flattener/issues"},"homepage":"https://github.com/equinor/openapi-flattener#readme","gitHead":"fb6acc982d9f7114a1ba74666e346cc931f4a3e6","_id":"openapi-flattener@1.0.3","_nodeVersion":"14.18.1","_npmVersion":"6.14.15","dist":{"integrity":"sha512-5zdcyuZsutu3A8k74yizdMIS5CEdd/ztKpCSZZOUYx+stFcYlaF+/EaMETduVf1Lbr/PLLQjgZluTctbF+9VaA==","shasum":"a02db4d0517822185cab30b950bb0b11680e847c","tarball":"https://registry.npmjs.org/openapi-flattener/-/openapi-flattener-1.0.3.tgz","fileCount":4,"unpackedSize":7280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh215VCRA9TVsSAnZWagAA8a4P/3W6ohdI2tVWQC9RcKC+\noxY1V8nu/54B7y4uqPn65srV198BTV8sWBFqV7Jc2BmfQwWjilezKlYgU8yn\n4PHwmIRcwSd2LkbLoKhvMhS+Av2irA7TvHK8gIFqcHJuH03mY1R2ID5jbdIX\n5v6qTbGI8SRb9fdTDqYq9eI3vwL+7KTpGMwigF9evH1uPgjh+WiuvlMJ4gAh\n8a0aqa54US+zJBQ0xWS9a0856CQIS2ejW6e22B0nUFsLGXr3cuRSo7a+NTUi\nN5k1AqmsJI16fIHe/srTOnsLJdZP97DhwlXrT3mzgrj5ARJHcwBNLeCF9lcy\novuTe5NpjV5wt1yrDRvVTMXqJ2Hz491fJ76U/Hs3x7mPd/EKQXqPZGATtR5J\nCuwTNvntUgwqkroVk32gKdzCFrNlrkFgUmCVn8Ct9TamgWovDjachgMfhCI9\nMpN1n7OiBN5MSz8MkkBgAQF0Pwngio4Fh3EAPhtF70h9wZNfuKw2oFMT1P5l\n3dBIHwlNCzmiJnBR++cp7Gkbke2OWS4uCONfYN76nCUOBhNdo3bTpwGr+64c\nXTsMYpLzUXz3dTFm/GhjxEFFNU3v+vc3EDgKjBilhtcVGS+ZXby0EXRpY5p7\ncX137MFnEqZSbhNt+vDQaT8abywyPh1ie2g4gYLvKIMwiZWHe2vu627YI08p\nthtC\r\n=9WEH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzdKvPA6ykV5xuj0feTAXsS11gMgZl7KQlPn2sB3X6IwIhAPxyi+jnpm+w+Md0woqhpxtHBxNQRPmmo1/3HOZ1iBSn"}]},"_npmUser":{"name":"hsiieqn","email":"hsii@equinor.com"},"directories":{},"maintainers":[{"name":"hsiieqn","email":"hsii@equinor.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/openapi-flattener_1.0.3_1635247196885_0.1455789272153869"},"_hasShrinkwrap":false}},"time":{"created":"2021-07-12T12:42:53.023Z","1.0.0":"2021-07-12T12:42:53.231Z","modified":"2022-05-12T06:01:25.514Z","1.0.1":"2021-07-12T12:56:49.179Z","1.0.2":"2021-07-12T13:06:59.964Z","1.0.3":"2021-10-26T11:19:57.030Z"},"maintainers":[{"name":"hsiieqn","email":"hsii@equinor.com"}],"description":"Install: `npm install openapi-flattener --save -g`","homepage":"https://github.com/equinor/openapi-flattener#readme","keywords":["OpenApi","flattener","derefence","merge","spec","schema"],"repository":{"type":"git","url":"git+https://github.com/equinor/openapi-flattener.git"},"author":{"name":"Henri Siik"},"bugs":{"url":"https://github.com/equinor/openapi-flattener/issues"},"license":"MIT","readme":"# openapi-flattener\n\nInstall: `npm install openapi-flattener --save -g`\n\nUsage: `openapi-flattener -s oas-with-refs-and-nesting.yaml -o flattened-oas.yaml`\n\n## Description\n\nThis package takes an OpenApi (`yaml | json`) file and flattens all references in the file.\nThis is done largely with the help of existing packages `json-schema-ref-parser` and `json-schema-merge-allof`. The file is de-referenced and the result of that is post-processed, where appropriate elements from an OAS is merged so that inherited fields are lifted to the object level where they are used. \n\nThe purpose of this flattening is to be able to use an OAS document with various tools that doesn't handle references.\n","readmeFilename":"README.md"}