{"_id":"@sodaru/yup-to-json-schema","_rev":"8-1c2be9827f1e8f659d6ad715ba270c26","name":"@sodaru/yup-to-json-schema","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"@sodaru/yup-to-json-schema","version":"1.0.0","description":"Library to convert Yup to JSON Schema","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"npx rimraf dist","test":"npx jest","build:tsc":"npx tsc","build":"npm run clean && npm run build:tsc","prepack":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/sodaru/yup-to-json-schema.git"},"keywords":["yup","json","yup-schema","json-schema","sodaru","opensource","library"],"prettier":{"arrowParens":"avoid","endOfLine":"lf","trailingComma":"none","tabWidth":2},"author":{"name":"Raghavendra K R","email":"krraghavendra@yahoo.co.in"},"license":"MIT License","bugs":{"url":"https://github.com/sodaru/yup-to-json-schema/issues"},"homepage":"https://github.com/sodaru/yup-to-json-schema#readme","devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/jest":"^26.0.20","@types/json-schema":"^7.0.7","@types/lodash":"^4.14.168","@types/yup":"^0.29.11","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","babel-jest":"^26.6.3","eslint":"^7.18.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","jest":"^26.6.3","prettier":"^2.2.1","rimraf":"^3.0.2","typescript":"^4.1.3","yup":"^0.32.8"},"dependencies":{"lodash":"^4.17.20"},"gitHead":"530e0a8350d5c928b9e5b8135a3130597858fc82","_id":"@sodaru/yup-to-json-schema@1.0.0","_nodeVersion":"14.15.3","_npmVersion":"6.14.9","dist":{"integrity":"sha512-wX5XNjDn+k+CQYWlvZYOOfjB2sTChbJQL3oUlxP4GeN4Z9hFbo19Le8JZUub8BgIInhmrFsTAJUH++pHqd9NHA==","shasum":"7b716d9f738c57f947417d25118cc044b393617e","tarball":"https://registry.npmjs.org/@sodaru/yup-to-json-schema/-/yup-to-json-schema-1.0.0.tgz","fileCount":24,"unpackedSize":15244,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgCWGMCRA9TVsSAnZWagAA9VsP+gIhOZ1uK5N4ObIVIsHt\nEpV/tnOgIofCk/GhejiexpaIdz5RrdCqEIewxiMF4Del7a+FlcobiqhZGS8D\nSvnJb6HOUTxyS6M5hlUEkz+nGTpVHsHeS3GrcEvUE7M2nyyU2+vWTnTSo2EV\nl8P232i53ftWEgI0lDTyMdSK1SOPOYn03foZz7H+XwZW9MjFP6uE/76vxx/n\nPf22DC9HCHsbUB4VNkTEOElwtRfCskYHVg7UaDWIIHUOut1MIDun2l/vaSrq\nYO79NtvqUIn4YhJ5go+t3Y9j+nuKi1I4PLaxw5nz8XCKUq8E6rQXJO8U5onV\nvJq5GrxfYALBgnOw/cLRgzUVWiKAFobMD5zULkqZs7ksyHrM+2Q+eFh+4okI\nxi1H1ZlXCFl5/0fghEeNwoV7WaRVdxy6OpnHJJh2xLAfiknqhsieOHZ2RZcf\nnN8K2S/0WiZg+BuXOUXgUJtbI1hi3uCeAiwEXBt5uatOuYcRbPWpR4YZaFwh\nFRCuQ4bau/Qo1ocQSTXEzt73c358ug+y4J+J0QWNjYj0iiSWOlAayA7g6L1P\nByN+erhU+WSyInWlHq8uzhKgGNpatfuSo/jBa8yp21TvsDtP/OxLfN/djSUt\nrlscwWwfyCPansZ78DUhA6U1rygErC+0TWEe+kDiFrN92gzA4lUSWQoD5paf\nwDSH\r\n=GPnt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDUSDW32S+4p0kV+V/F7RbWQorJ+b21gNWBZgFajhzdVAiEAx/Sa30XpiYW0/rtlyRFZjTbliRVnwIFnndVghMS8FQ8="}]},"_npmUser":{"name":"raaghukr","email":"krraghavendra@yahoo.co.in"},"directories":{},"maintainers":[{"name":"raaghukr","email":"krraghavendra@yahoo.co.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yup-to-json-schema_1.0.0_1611227531907_0.5214091279382362"},"_hasShrinkwrap":false},"1.0.3":{"name":"@sodaru/yup-to-json-schema","version":"1.0.3","description":"Library to convert Yup to JSON Schema","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"npx rimraf dist","build:tsc":"npx tsc","build":"npm run clean && npm run build:tsc","pretest":"npm run build","test":"npx jest","prepack":"npm run test","postversion":"git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/sodaru/yup-to-json-schema.git"},"keywords":["yup","json","yup-schema","json-schema","sodaru","opensource","library"],"prettier":{"arrowParens":"avoid","endOfLine":"lf","trailingComma":"none","tabWidth":2},"author":{"name":"Raghavendra K R","email":"krraghavendra@yahoo.co.in"},"license":"MIT License","bugs":{"url":"https://github.com/sodaru/yup-to-json-schema/issues"},"homepage":"https://github.com/sodaru/yup-to-json-schema#readme","devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/jest":"^26.0.20","@types/json-schema":"^7.0.7","@types/lodash":"^4.14.168","@types/yup":"^0.29.11","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","babel-jest":"^26.6.3","eslint":"^7.18.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","jest":"^26.6.3","prettier":"^2.2.1","rimraf":"^3.0.2","typescript":"^4.1.3","yup":"^0.32.8"},"dependencies":{"lodash":"^4.17.20"},"gitHead":"68bdd84d078895ee7142940eb4abfe5a75b48615","_id":"@sodaru/yup-to-json-schema@1.0.3","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-Pf1+xbhdvmon/UzKV3WOB5Iy7unDb8nsTz5xgVyXMBrsrPcierOBz4Y24xqjogPdB1UusiZ9gPAq385Sizf8xg==","shasum":"1b53477fc322fdc445eff901aa14b7eff0147eb0","tarball":"https://registry.npmjs.org/@sodaru/yup-to-json-schema/-/yup-to-json-schema-1.0.3.tgz","fileCount":23,"unpackedSize":15565,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCb/s1G6NKCslf2HIzp6fWsLQMnQDr5rYc60YT6cd/hVAIhAM2COu/wuoQWGvatWNbzivver9Zqpv8FG2XF5KJk0kqd"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTOTTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqLRAAh221DfBJqbD4fXrEHjLcSAbDuYTsWt3R+iguZOfGUZkapIRg\r\numsLRM90+Z5r3zU9JUwXmMtq/EJCJAYCcMc7SKmX4gIxdEgohhhokWquYVLr\r\n9iY+9WCDlstUZ1cs8vr3GntJjXT+7/QHYJsePJlAp6Ff3uTQ//B8H9lXPQrl\r\n5Giighggi2UKi+4yS0Zpk5JeTRXS+f7ugJ4ZCfnM96+4gvot8QzR0ENBeO/M\r\n+lotDlrht2xaGySBhI5jPUfJeRPSLXcNoRz1+bxk6uX4uTrxA1bghvkGuMkH\r\nhS9jxrFEy8z+/vmRv/RDZMj9vHrCC6URfC+zI5Lpt/GtiG2kSlSDr7ThomU2\r\nVERHVUYcuO1GpsCmmfP46vx1lXFB/ot+qliKXrgJJgmjBL6TIVIsmDY9BkOy\r\nGZHDvPELku5PTMaWk0/JWKa/ngp5E+J4DJKSn4taDQ2qk670QiHme1PkNP0w\r\n+gqAAxFwndQyLO7gMKrKnRSqvOuXDZNAmR9iCpLnof9Y4tQm9niSrGfa/xW0\r\nR+WiTKrrTdKH23BXtDyIoev/aXot45/dEhSFbIPEFnIbmI5MOD/VuyCjkEfH\r\nYe96rYl4fS0yweMbG2yeNqW9H3509dAS6fcKECku/HatllBZ3xlSCwfIEc1/\r\nNI4XCe0d3n9L3CdymaIG79jaW+rzoGRjHPA=\r\n=yagw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sodaru-it","email":"it@sodaru.com"},"directories":{},"maintainers":[{"name":"sodaru-it","email":"it@sodaru.com"},{"name":"raaghukr","email":"krraghavendra@yahoo.co.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yup-to-json-schema_1.0.3_1665983699717_0.8377411600481282"},"_hasShrinkwrap":false},"1.0.5":{"name":"@sodaru/yup-to-json-schema","version":"1.0.5","description":"Library to convert Yup to JSON Schema","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"npx rimraf dist","build:tsc":"npx tsc","build":"npm run clean && npm run build:tsc","pretest":"npm run build","test":"npx jest","prepack":"npm run test","postversion":"git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/sodaru/yup-to-json-schema.git"},"keywords":["yup","json","yup-schema","json-schema","sodaru","opensource","library"],"prettier":{"arrowParens":"avoid","endOfLine":"lf","trailingComma":"none","tabWidth":2},"author":{"name":"Raghavendra K R","email":"krraghavendra@yahoo.co.in"},"license":"MIT License","bugs":{"url":"https://github.com/sodaru/yup-to-json-schema/issues"},"homepage":"https://github.com/sodaru/yup-to-json-schema#readme","devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/jest":"^26.0.20","@types/json-schema":"^7.0.7","@types/lodash":"^4.14.168","@types/yup":"^0.29.11","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","babel-jest":"^26.6.3","eslint":"^7.18.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","jest":"^26.6.3","prettier":"^2.2.1","rimraf":"^3.0.2","typescript":"^4.1.3","yup":"^0.32.8"},"dependencies":{"lodash":"^4.17.20"},"gitHead":"796bc2c22f5d77f3afb14c30daabd3b41ebf8809","_id":"@sodaru/yup-to-json-schema@1.0.5","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-Iy9NJlL5G0jZa4Ox7oiu9Wvf2hnzFCBRsUwr/Q3YZRpXm2KDVBGHjdZx3BE5hGFwe0v9UsismOV0CGr4gEF3IA==","shasum":"8e8910a18bcba9297246d786d84d0da7f13eb738","tarball":"https://registry.npmjs.org/@sodaru/yup-to-json-schema/-/yup-to-json-schema-1.0.5.tgz","fileCount":25,"unpackedSize":18093,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWUZLOyEjR3fUp+VBD+Vp0KcISw8bUM98e3rOYPGM1bAiA3e2Ghwq1P3JsNwptREoqbmAAIMVNk1szc66jrVptuLw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjfdryACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrAmxAAix0BoTaN+soGr0V9XIpP8oqzJV3aO4PbBATNFgRIu+XJM6J6\r\n6ce0m2L4UN5Er7R6zdX4zWwvqzCifld1klXCs0QzpIHYIumhIiFHdmXswyWD\r\nkGmNRi5Y0Hzi7tBKbZOxIlKblXRj+VHKtl7Hgy/lG8gpI1A+zAEtSEZlkZvE\r\nbllMMuJRezV8cudNqqsgoIis6mFgAh51CGkBKdQGsk0AAw0eCzWrPdvAimau\r\nbxYOmn/rD97u3lDJNHASnD1QYm12mlXjkRx8G+SdjJ6ivmuyy6vu4/ZY8XPn\r\nJBLw/UySI2LQk8qhwwKQk8e2CFTHDQSzIMpDnAAlwge7Rody/oMJWct8uXDu\r\n2SnP6LQx/3TmjOMR9d9XiD6ngtOQxJDsQOW8TtCTj7FpEAMw2c2z5RnUbaUy\r\nUVOFFhutxi8hTZH9pY90BgSTDN+4ei9ex4MS7sHhTfWZPxD4D3SFFoc+uDpH\r\nChbtxeIxTCxayAfAcL8XybQgNs+aszWSXBqzbvs+ZEvr8Ab8qv2pqc8rCWLG\r\nZ/MAV35MJMqR6P6T8yYtdEsxf/90gZcYFQjBWCLwaeRKsKN7/9KGdxQC/M3o\r\n+Kj5+Lb1usFy69jsu+xUIOfsN52VVbCeC3mPLLYfrWre7bxQJaHFyjqaatbR\r\nHtIaBkt7DDhqrXVlPJlfYkXLZ5lgiSwmeuY=\r\n=Uw2s\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sodaru-it","email":"it@sodaru.com"},"directories":{},"maintainers":[{"name":"sodaru-it","email":"it@sodaru.com"},{"name":"raaghukr","email":"krraghavendra@yahoo.co.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yup-to-json-schema_1.0.5_1669192434594_0.3327091137353184"},"_hasShrinkwrap":false},"1.1.0":{"name":"@sodaru/yup-to-json-schema","version":"1.1.0","description":"Library to convert Yup to JSON Schema","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"npx rimraf dist","prettier":"npx prettier -c ./","build:tsc":"npx tsc","build":"npm run prettier && npm run clean && npm run build:tsc","pretest":"npm run build","test":"npx jest","prepack":"npm run test","postversion":"git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/sodaru/yup-to-json-schema.git"},"keywords":["yup","json","yup-schema","json-schema","sodaru","opensource","library"],"prettier":{"arrowParens":"avoid","endOfLine":"lf","trailingComma":"none","tabWidth":2},"author":{"name":"Raghavendra K R","email":"krraghavendra@yahoo.co.in"},"license":"MIT License","bugs":{"url":"https://github.com/sodaru/yup-to-json-schema/issues"},"homepage":"https://github.com/sodaru/yup-to-json-schema#readme","devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/jest":"^26.0.20","@types/json-schema":"^7.0.7","@types/lodash":"^4.14.168","@types/yup":"^0.29.11","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","babel-jest":"^26.6.3","eslint":"^7.18.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","jest":"^26.6.3","prettier":"^2.2.1","rimraf":"^3.0.2","typescript":"^4.1.3","yup":"^0.32.8"},"dependencies":{"lodash":"^4.17.20"},"gitHead":"f5af6df286ddfa6ed895dc2b94fae0234d152844","_id":"@sodaru/yup-to-json-schema@1.1.0","_nodeVersion":"16.18.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-8JTsBB7nwaSLREK9OuYmB4SvjZGfhQ+22HkU6in/RcI69Cqn8q/A598E8eFOEz0oGOFwqV6L29wS0CUWZAf6yg==","shasum":"e71ae29bfdcd236ae4e19d4b691c36dd70da65d7","tarball":"https://registry.npmjs.org/@sodaru/yup-to-json-schema/-/yup-to-json-schema-1.1.0.tgz","fileCount":25,"unpackedSize":18268,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICnk98kc0L7uFjOlYtU1zDfIcpHTBO1QyAaaNAojU2J9AiEA8jTfS2NPcp649EXuwRERogNOCKFyNR21XW6lBfRBB/U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtU8HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5Ww//c9GPGsbeWX7EcCNtsk3nL5xbw+gBPADPuoYO20s1T9zR5qj7\r\noeKs4BdGt2QAVB6repW2308VP59aVpV85cwy9DDF5BhESmN4Zk/SpPtiHsrC\r\nK5yNERuKqBRyBpt/dzjwZ+FgtbLQ3ju+TGoc6GBOooejfc5q19/HFjCNF/Pj\r\nUHyldJ2ch33Vif0+i/lzP5ESqeoSF3coDN/usDFLRjUkpO/1wUm2WB4kVHR9\r\noQLRpuCf6dKFhPzfM7qYWUTaapU0oipGtZ83tMJG/qE33po0f+xheVuBX0r3\r\n2ziIj7Fm1bNnyXgabNiZW4MPp8c/hqeVYf2xhDbS46hCGVVH9JyDiVeSYKUL\r\nz4UN7DRgfOXGpF2kBc1tyF9S65nB6+gMmnbVJWrOINBqWTlxZtUZEo980lvw\r\nAKvw5TLHXxZ/6gxevG8Zg9BC0cPzuYoyOr4a+u+ss3/B1pJITEd8CjbddOh+\r\n9lj5x2dNU35lGsVgYukFvr32VMOMrxDofb2485ibaMuvOf0Q+miNAQ9BDJWn\r\nF1lTqc//fUSqZXwgbpokjaianKWqk1Q9Q61lIJEgyHF21zcS9M0FKwQEYMey\r\nO+V5x+DnJkkJcBWhQ9stj42hQ/gABgEGU9Y3YWJSmymOERHcF2yiiKh+P4id\r\npNP2x2sSO3DtZZEXM0dPePvCb8bww4VVfLk=\r\n=3Vhq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sodaru-it","email":"it@sodaru.com"},"directories":{},"maintainers":[{"name":"sodaru-it","email":"it@sodaru.com"},{"name":"raaghukr","email":"krraghavendra@yahoo.co.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yup-to-json-schema_1.1.0_1672826631436_0.9646735948435676"},"_hasShrinkwrap":false},"1.1.1":{"name":"@sodaru/yup-to-json-schema","version":"1.1.1","description":"Library to convert Yup to JSON Schema","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"npx rimraf dist","prettier":"npx prettier -c ./","build:tsc":"npx tsc","build":"npm run prettier && npm run clean && npm run build:tsc","pretest":"npm run build","test":"npx jest","prepack":"npm run test","postversion":"git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/sodaru/yup-to-json-schema.git"},"keywords":["yup","json","yup-schema","json-schema","sodaru","opensource","library"],"prettier":{"arrowParens":"avoid","endOfLine":"lf","trailingComma":"none","tabWidth":2},"author":{"name":"Raghavendra K R","email":"krraghavendra@yahoo.co.in"},"license":"MIT License","bugs":{"url":"https://github.com/sodaru/yup-to-json-schema/issues"},"homepage":"https://github.com/sodaru/yup-to-json-schema#readme","devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/jest":"^26.0.20","@types/json-schema":"^7.0.7","@types/lodash":"^4.14.168","@types/yup":"^0.29.11","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","babel-jest":"^26.6.3","eslint":"^7.18.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","jest":"^26.6.3","prettier":"^2.2.1","rimraf":"^3.0.2","typescript":"^4.1.3","yup":"^0.32.8"},"dependencies":{"lodash":"^4.17.20"},"gitHead":"1e6786f1357d126b55ed1a41947de8a9b8d06204","_id":"@sodaru/yup-to-json-schema@1.1.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-SIN5nWK7ZxgKKxj1KfqaQzOr6YNllTvMXl+/DzVgnVxw2RLpBtMThcLiq7SVE74L4UcbP4ncVqHxGx2feiEQeA==","shasum":"77450c4550ee1fcf2eec2b67ac0866bfa8e20c3f","tarball":"https://registry.npmjs.org/@sodaru/yup-to-json-schema/-/yup-to-json-schema-1.1.1.tgz","fileCount":25,"unpackedSize":18426,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDk4kBE463h/URRYF1CDjyOMzuQ4qio9sZ5LHCg+cKI1QIhAL5TpEsvpI31WlN0pbfLPtSxO7uVSdh9kN1nRK0Sowkj"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjypsVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoqIA/+OKsQbCF/CjV4+9brAycWy6DAOEvgptCwKgKi8jZX/AF1Szwo\r\nU720wLFHSrGHsRQ65Lu7Dx4oZzQk9aK8r1QnO/S3huU5lfFr3ESxwBUT1jF0\r\njlY0iuD8rbjHCLhFHWlwIwxnotHspaJCMKlZiuwMJYdu3xtfJUjnmfIlTvZg\r\nMZNiaTK1X2a6Z6Pe7qHWgtuHq7vqO7XV5jaMRvYh89nFRfZVugPmgR8UmcgH\r\nXZpTB8mQyWIhzV35U2mG+X3jl2hEYtsiYatGcpSI686051atZ0Ezh6CwlVrL\r\n0v/FWwNdl/RDeQMnmVODEC6ADHifABlZCi75najpvJXKSZBWNHKNytFjmE56\r\nuRuPDsTlf+/wN3vRI7OqlIEquSLPkZBBX+0q2SS7QHLSc+wdhrhDVq8bG+L9\r\nR8C4N+fcOCfDQ0hzEb9BFOkcPMDhPUgZRkTvZEnmBTmrmAwUYExWdz6X4vKX\r\nQqzoPzgksLcE9mbm5DtmsIBqt/Yc7WrtNGLGiOl2d0MOlVA4z5WswGQycSdM\r\nLKrY0Ghi/rT1VIcnaU9Nv6QWcuoA/FzzhLe39aiVj7nikW+hAM3rZ7eB00yF\r\nrQwcTmdCA0NcJCOndr4kFeEUUYQyRf4kRyu0WAzypLhPFlwdS+eMwHmkFRcY\r\nHQpXXNF8X0BAc7Xg+09Sql8ftKUKj0HTOKo=\r\n=pE72\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sodaru-it","email":"it@sodaru.com"},"directories":{},"maintainers":[{"name":"sodaru-it","email":"it@sodaru.com"},{"name":"raaghukr","email":"krraghavendra@yahoo.co.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yup-to-json-schema_1.1.1_1674222357766_0.49038389403163674"},"_hasShrinkwrap":false},"2.0.0":{"name":"@sodaru/yup-to-json-schema","version":"2.0.0","description":"Library to convert Yup to JSON Schema","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"npx rimraf dist","prettier":"npx prettier -c ./ --write","build:tsc":"npx tsc","build":"npm run prettier && npm run clean && npm run build:tsc","pretest":"npm run build","test":"npx jest","prepack":"npm run test","postversion":"git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/sodaru/yup-to-json-schema.git"},"keywords":["yup","json","yup-schema","json-schema","sodaru","opensource","library"],"prettier":{"arrowParens":"avoid","endOfLine":"lf","trailingComma":"none","tabWidth":2},"author":{"name":"Raghavendra K R","email":"krraghavendra@yahoo.co.in"},"license":"MIT License","bugs":{"url":"https://github.com/sodaru/yup-to-json-schema/issues"},"homepage":"https://github.com/sodaru/yup-to-json-schema#readme","devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/jest":"^26.0.20","@types/json-schema":"^7.0.7","@types/lodash":"^4.14.168","@types/yup":"^0.29.11","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","babel-jest":"^26.6.3","eslint":"^7.18.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","jest":"^26.6.3","prettier":"^2.2.1","rimraf":"^3.0.2","typescript":"^4.1.3","yup":"^1.1.1"},"dependencies":{},"gitHead":"f0e3c9c23c7ddea53e93a6c45ebacffaba4866b8","_id":"@sodaru/yup-to-json-schema@2.0.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-1Ox3KxAsAsDjln8UnfoHlt8K8xbdv3gOUWR6KjAHi8IUerobixtqFgSyCbXKNQ3XYwtlTxg5rBKiiv+zOVTdJA==","shasum":"818ad625049aa074426b3f83cdeb5123b673ad6c","tarball":"https://registry.npmjs.org/@sodaru/yup-to-json-schema/-/yup-to-json-schema-2.0.0.tgz","fileCount":31,"unpackedSize":25841,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1JmduaTe9ChI1JbtVG2ED1AxSVnGpmubDLbKjmZSuTQIhAMv2pMw4mSAGRPdZ+XaSXPvzalHEwDm2K4ltVYi7BmDB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkP5lkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqd5A//f3+ovMaq/HTJyHsut8VusZtnmaIaqG6aPevwfUYeGDfd0nF1\r\n59PQMocqAvheWe0c85uuhXcPG37zC2hqj5ddjlVF9SYOhri52H0FJ7FFmULJ\r\nAYfisPOl9RPGPDSMEIZ4Tb/HRP1Fy3khczS0ezA+8talip/Ea/VH3izpNztM\r\n92KHtj6XthHRfJSYbq581SC7UF1a9Uu+biEGtmaDr/6B9wx2ZXxXcytinINq\r\nkT1R8De7jAQCt9QtSwcR1tQYtYnS5OA4tOS49B50EzEFmlAMmNG4nCD4VPdh\r\nfhuKbgwaMbalLKcMVkfsUDUlHanpVcR2Gvr5LKcfl3Fhq/V6apLxV7NwLR3Q\r\nXkaMxeZgnyRDaPmJ8GZ0x7bvI+5Op6ESlanmZ308WIW/jSTuHE9Kd3crbe2r\r\njaAmNgxkZPN34KiJeCefviGr01f1sScnucaJo/hSe21G7Qyyv52IMZUgv/IT\r\nSzMjmwnVGSWvOW8Bz5o1yRMkuFrh4OjRjC19ST47zQ8059XX7B1IZottIfYp\r\nhgESrJezBAbTNFBAYLRbz7Jkn+cpqn6W0hixHJoD4WUFPcBGqvq7eh31qOxu\r\nkyiLdLNed8+4cP9IC51loyCqMFcpcAGup9GWG6xQ72bc+5aCvhQ4Cx8ObfzL\r\np7fgPxWwT9kRrNy/dklUXsBmv/qWEOzdTWc=\r\n=YKma\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sodaru-it","email":"it@sodaru.com"},"directories":{},"maintainers":[{"name":"sodaru-it","email":"it@sodaru.com"},{"name":"raaghukr","email":"krraghavendra@yahoo.co.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yup-to-json-schema_2.0.0_1681889636530_0.11580143677048893"},"_hasShrinkwrap":false},"2.0.1":{"name":"@sodaru/yup-to-json-schema","version":"2.0.1","description":"Library to convert Yup to JSON Schema","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"clean":"npx rimraf dist","prettier":"npx prettier -c ./ --write","build:tsc":"npx tsc","build":"npm run prettier && npm run clean && npm run build:tsc","pretest":"npm run build","test":"npx jest","prepack":"npm run test","postversion":"git push --follow-tags"},"repository":{"type":"git","url":"git+https://github.com/sodaru/yup-to-json-schema.git"},"keywords":["yup","json","yup-schema","json-schema","sodaru","opensource","library"],"prettier":{"arrowParens":"avoid","endOfLine":"lf","trailingComma":"none","tabWidth":2},"author":{"name":"Raghavendra K R","email":"krraghavendra@yahoo.co.in"},"license":"MIT License","bugs":{"url":"https://github.com/sodaru/yup-to-json-schema/issues"},"homepage":"https://github.com/sodaru/yup-to-json-schema#readme","devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.11","@babel/preset-typescript":"^7.12.7","@types/jest":"^26.0.20","@types/json-schema":"^7.0.7","@types/lodash":"^4.14.168","@types/yup":"^0.29.11","@typescript-eslint/eslint-plugin":"^4.14.0","@typescript-eslint/parser":"^4.14.0","babel-jest":"^26.6.3","eslint":"^7.18.0","eslint-import-resolver-typescript":"^2.3.0","eslint-plugin-import":"^2.22.1","jest":"^26.6.3","prettier":"^2.2.1","rimraf":"^3.0.2","typescript":"^4.1.3","yup":"^1.1.1"},"dependencies":{},"gitHead":"dcbe9e80ca55c9fd0441367801147c264b7aecd8","_id":"@sodaru/yup-to-json-schema@2.0.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-lWb0Wiz8KZ9ip/dY1eUqt7fhTPmL24p6Hmv5Fd9pzlzAdw/YNcWZr+tiCT4oZ4Zyxzi9+1X4zv82o7jYvcFxYA==","shasum":"117ddf49cb03896b785f0efbe7b6679456a03287","tarball":"https://registry.npmjs.org/@sodaru/yup-to-json-schema/-/yup-to-json-schema-2.0.1.tgz","fileCount":31,"unpackedSize":30574,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEl35UYlunjEUwaq4oLCH6Hv64H7plUtClfRaBvVBIhAiEA6cDAe3H8hPC5YSIZq2qkzZaLRRQXVBH4iG220dIJovk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkR3xFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZGw//SkxnP7OevXhqlNrld6hgKD7YFGcydqvNHayTQcit/YqvEFxB\r\nFHvf+eQvNlo2hfqNXdgaWGSt3MdU1ZvjmBK8FblJ84oDTPjLTRWreDPUPt8M\r\nZWtsWqKOIDp1gSAfzLgePqxhS/pbsbboAoYUYkaakHwCgtnJCzcJP5I0ThOL\r\nyitCOt8wgAggfW18F6DFe8N/tmK5TNp0traPywnf8soHEUbyTlN/tZDJppSk\r\noike11EdXCeWH5EJDjhIEtW5b2qiw61frYxnglnibGrb9sRraK1zullrWn6b\r\nzGFEo/GJJa80mKujdNGFMUyNufVnCo/aR/KcwTs29vEj/BUCtoQ7IlApGpmA\r\niqcbVdLAU0D/Y2rsz65LTY4ox37d6CBBDh0mX8NGp0dSEFg3s7LWRqKVXnB0\r\npVueti3R8d6ciXFNfJS5NqF9R896a5M/p7wBXMvCxSYkSg35N8l2nYwxH06X\r\nRmtrYNpSrD/tcsLe07AnYPMV+4SBALPT1YsWeC7dwOlciriMt7wuqIKW3HdT\r\nBxxul3lgpwSS/OuPsKC23TqLdQgWXPAfUH9IiFxmXawxy6HuAxZRfBvK43rK\r\nJuPWPlkYwdZSLEYHEtf2Fn3PojWcIYjY7D60i/SM/kZ5C/Gsc2lnhxRMihyC\r\nrGaRf8qJXauZ3UN7EXpyq7TwlioSqEd8Fwk=\r\n=N4Ci\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"sodaru-it","email":"it@sodaru.com"},"directories":{},"maintainers":[{"name":"sodaru-it","email":"it@sodaru.com"},{"name":"raaghukr","email":"krraghavendra@yahoo.co.in"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yup-to-json-schema_2.0.1_1682406469373_0.13708050001618388"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-21T11:12:11.656Z","1.0.0":"2021-01-21T11:12:12.042Z","modified":"2023-04-25T07:07:49.657Z","1.0.3":"2022-10-17T05:14:59.910Z","1.0.5":"2022-11-23T08:33:54.807Z","1.1.0":"2023-01-04T10:03:51.600Z","1.1.1":"2023-01-20T13:45:57.926Z","2.0.0":"2023-04-19T07:33:56.674Z","2.0.1":"2023-04-25T07:07:49.535Z"},"maintainers":[{"name":"sodaru-it","email":"it@sodaru.com"},{"name":"raaghukr","email":"krraghavendra@yahoo.co.in"}],"description":"Library to convert Yup to JSON Schema","homepage":"https://github.com/sodaru/yup-to-json-schema#readme","keywords":["yup","json","yup-schema","json-schema","sodaru","opensource","library"],"repository":{"type":"git","url":"git+https://github.com/sodaru/yup-to-json-schema.git"},"author":{"name":"Raghavendra K R","email":"krraghavendra@yahoo.co.in"},"bugs":{"url":"https://github.com/sodaru/yup-to-json-schema/issues"},"license":"MIT License","readme":"# yup-to-json-schema\n\n> [Yup](https://github.com/jquense/yup) is a library to validate the JSON input\n\n> [JSON-Schema](https://json-schema.org/) is a schema specification for JSON\n\n> NOTE : Upgraded to support Yup Version 1\n> Version Maping\n> | Yup Major Version | This Library Major Version | Branch in this Library |\n> | ----- | ------ | -----|\n> | 1 | 2 | main |\n> | 0 | 1 | yup_v0 |\n\nThis library converts `Yup` schema to `JSON-Schema`\n\n## Installation\n\n```\nnpm i @sodaru/yup-to-json-schema\n```\n\n## Usage\n\n### Convert YUP to JSON-SCHEMA\n\n```js\nimport { object, string, array, tuple, date, boolean, number } from 'yup';\nimport { convertSchema } from '@sodaru/yup-to-json-schema';\n\nconst schema = object({\n  name: string().label('Name').required(),\n  address: tuple([string(), string()]).label('Address'),\n  hobbies: array(string()).min(1).label('Hobbies'),\n  birthdate: date().label('Birthdate'),\n  admin: boolean().label('Admin'),\n  rank: number().integer().positive().label('Rank')\n});\n\nconst jsonSchema = convertSchema(schema);\n\nassert(jsonSchema).toEqual({\n  type: 'object',\n  required: ['name']\n  properties: {\n    name: {\n      type: 'string',\n      title: 'Name'\n    },\n    address: {\n      type: 'array',\n      title: 'Address',\n      minItems: 2,\n      maxItems: 2,\n      items: [\n        {\n          type: 'string'\n        },\n        {\n          type: 'string'\n        }\n      ]\n    },\n    hobbies: {\n      type: 'array',\n      title: 'Hobbies',\n      items: {\n        type: 'string'\n      },\n      minItems: 1\n    },\n    birthdate: {\n      type: 'string',\n      title: 'Birthdate',\n      format: 'date-time'\n    },\n    admin: {\n      type: 'boolean',\n      title: 'Admin'\n    },\n    rank: {\n      type: 'integer',\n      title: 'Rank',\n      exclusiveMinimum: 0\n    }\n  }\n});\n```\n\n### Provide additional Schema as meta property in Yup\n\nAdd additional JSON Schema information to the `jsonSchema` property via the `meta()` method. This will be shallow merged with the result of the conversion.\n\n```js\nconst schema = object({ ... }).meta({\n  jsonSchema: {\n    $id: '...'\n    description: '...'\n  }\n});\n```\n\n### extend the schema\n\nYou can also use the `extendSchema` to add helpful methods to all of your yup schemas. Use the `example`, `examples`, `description`, and `jsonSchema` methods to add common proprties to your JSON Schemas.\n\n```js\nimport {\n  object,\n  string,\n  array,\n  tuple,\n  date,\n  boolean,\n  number,\n  addMethod,\n  Schema\n} from 'yup';\nimport { extendSchema, convertSchema } from '@sodaru/yup-to-json-schema';\n\nextendSchema({ addMethod, Schema });\n\nconst schema = object({\n  name: string()\n    .label('Name')\n    .description('Your first name')\n    .example('Johnny Cash')\n    .required(),\n  address: tuple([string(), string()])\n    .label('Address')\n    .description('Your Address')\n    .example(['Nashville', 'TN']),\n  hobbies: array(string())\n    .label('Hobbies')\n    .min(1)\n    .description('Your hobbies')\n    .example(['Guitar', 'Singing']),\n  birthdate: date()\n    .label('Birthdate')\n    .description('Your birthdate')\n    .example(new Date('February 26, 1932')),\n  admin: boolean()\n    .label('Admin')\n    .description('Use is an admin')\n    .example(true),\n  rank: number()\n    .label('Rank')\n    .description('Your rank')\n    .jsonSchema((jsonSchema) => {\n      return {\n        ...jsonSchema,\n        testProp: true\n      };\n    })\n    .example(27)\n    .integer()\n    .positive()\n});\n\nconst jsonSchema = convertSchema(schema);\n\njsonSchema = {\n  type: 'object',\n  required: ['name']\n  properties: {\n    name: {\n      type: 'string',\n      title: 'Name',\n      description: 'Your first name',\n      example: 'Johnny Cash'\n    },\n    address: {\n      type: 'array',\n      title: 'Address',\n      description: 'Your Address',\n      example: ['Nashville', 'TN'],\n      minItems: 2,\n      maxItems: 2,\n      items: [\n        {\n          type: 'string'\n        },\n        {\n          type: 'string'\n        }\n      ]\n    },\n    hobbies: {\n      type: 'array',\n      title: 'Hobbies',\n      items: {\n        type: 'string'\n      },\n      minItems: 1,\n      description: 'Your hobbies',\n      example: ['Guitar', 'Singing']\n    },\n    birthdate: {\n      type: 'string',\n      title: 'Birthdate',\n      format: 'date-time',\n      description: 'Your birthdate',\n      example: '1932-02-26T06:00:00.000Z'\n    },\n    admin: {\n      type: 'boolean',\n      title: 'Admin',\n      description: 'User is an admin',\n      example: true\n    },\n    rank: {\n      type: 'integer',\n      title: 'Rank',\n      exclusiveMinimum: 0,\n      description: 'Your rank',\n      testProp: true,\n      example: 27\n    }\n  }\n};\n```\n\n### Provide the data using the ResolveOptions for `when` and `lazy`\n\nUse the second argument `ResolveOptions` to pass context to allow for better `when` and `lazy` methods. This argument is passed to the underlying `describe(options)`\n\n```js\nimport { object, number } from \"yup\";\nimport { convertSchema } from \"@sodaru/yup-to-json-schema\";\n\nconst schema = object({\n  rank: number().when([\"name\"], ([name], schema) => {\n    return name === \"Johnny Cash\" ? schema.min(100) : schema.min(0);\n  })\n});\n\nconst schema = object({\n  rank: lazy(({ name }) => {\n    return name === \"Johnny Cash\" ? number().min(100) : number().min(0);\n  })\n});\n\nconst jsonSchema = convertSchema(schema, {\n  value: { name: \"Johnny Cash\", rank: 100 }\n});\n\njsonSchema = {\n  type: \"object\",\n  properties: {\n    rank: {\n      type: \"number\",\n      minimum: 100\n    }\n  }\n};\n```\n\n## Contribution\n\nFork the repo and send the Pull Requests to `develop` branch\n\n`develop` is merged to the `main` branch periodically to make a release\n\n## Support\n\nThis project is a part of the Open Source Initiative from Sodaru Technologies\n\nWrite an email to opensource@sodaru.com for queries on this project\n","readmeFilename":"README.md"}