json2jsii
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -11,3 +11,4 @@ const { TypeScriptLibraryProject, Semver } = require('projen'); | ||
'json-schema': Semver.caret('0.2.5'), | ||
'codemaker': Semver.caret('1.6.0') | ||
'camelcase': Semver.caret('6.0.0'), | ||
'snake-case': Semver.caret('3.0.3') | ||
}, | ||
@@ -14,0 +15,0 @@ devDependencies: { |
@@ -1,3 +0,4 @@ | ||
{"/home/runner/work/json2jsii/json2jsii/lib/index.ts": {"path":"/home/runner/work/json2jsii/json2jsii/lib/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}},"fnMap":{},"branchMap":{},"s":{"0":4},"f":{},"b":{}} | ||
,"/home/runner/work/json2jsii/json2jsii/lib/type-generator.ts": {"path":"/home/runner/work/json2jsii/json2jsii/lib/type-generator.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":52}},"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":29}},"2":{"start":{"line":5,"column":24},"end":{"line":5,"column":68}},"3":{"start":{"line":6,"column":27},"end":{"line":6,"column":43}},"4":{"start":{"line":26,"column":19},"end":{"line":26,"column":84}},"5":{"start":{"line":27,"column":19},"end":{"line":27,"column":52}},"6":{"start":{"line":37,"column":4},"end":{"line":37,"column":41}},"7":{"start":{"line":38,"column":4},"end":{"line":38,"column":50}},"8":{"start":{"line":50,"column":4},"end":{"line":52,"column":null}},"9":{"start":{"line":51,"column":6},"end":{"line":51,"column":80}},"10":{"start":{"line":54,"column":4},"end":{"line":56,"column":null}},"11":{"start":{"line":55,"column":6},"end":{"line":55,"column":65}},"12":{"start":{"line":58,"column":4},"end":{"line":60,"column":null}},"13":{"start":{"line":59,"column":6},"end":{"line":59,"column":106}},"14":{"start":{"line":62,"column":4},"end":{"line":64,"column":null}},"15":{"start":{"line":63,"column":6},"end":{"line":63,"column":34}},"16":{"start":{"line":67,"column":4},"end":{"line":73,"column":null}},"17":{"start":{"line":68,"column":6},"end":{"line":70,"column":null}},"18":{"start":{"line":69,"column":8},"end":{"line":69,"column":24}},"19":{"start":{"line":75,"column":4},"end":{"line":77,"column":null}},"20":{"start":{"line":76,"column":6},"end":{"line":76,"column":20}},"21":{"start":{"line":79,"column":4},"end":{"line":84,"column":null}},"22":{"start":{"line":80,"column":22},"end":{"line":80,"column":39}},"23":{"start":{"line":81,"column":20},"end":{"line":81,"column":67}},"24":{"start":{"line":82,"column":18},"end":{"line":82,"column":31}},"25":{"start":{"line":83,"column":19},"end":{"line":83,"column":32}},"26":{"start":{"line":86,"column":4},"end":{"line":88,"column":null}},"27":{"start":{"line":87,"column":6},"end":{"line":87,"column":22}},"28":{"start":{"line":90,"column":4},"end":{"line":100,"column":null}},"29":{"start":{"line":91,"column":6},"end":{"line":93,"column":null}},"30":{"start":{"line":92,"column":8},"end":{"line":92,"column":22}},"31":{"start":{"line":95,"column":6},"end":{"line":97,"column":null}},"32":{"start":{"line":95,"column":80},"end":{"line":95,"column":102}},"33":{"start":{"line":96,"column":8},"end":{"line":96,"column":55}},"34":{"start":{"line":99,"column":6},"end":{"line":99,"column":22}},"35":{"start":{"line":103,"column":4},"end":{"line":105,"column":null}},"36":{"start":{"line":104,"column":6},"end":{"line":104,"column":94}},"37":{"start":{"line":108,"column":4},"end":{"line":111,"column":null}},"38":{"start":{"line":109,"column":6},"end":{"line":109,"column":null}},"39":{"start":{"line":110,"column":6},"end":{"line":110,"column":22}},"40":{"start":{"line":113,"column":4},"end":{"line":113,"column":17}},"41":{"start":{"line":122,"column":4},"end":{"line":124,"column":null}},"42":{"start":{"line":123,"column":6},"end":{"line":123,"column":56}},"43":{"start":{"line":126,"column":17},"end":{"line":126,"column":32}},"44":{"start":{"line":127,"column":21},"end":{"line":127,"column":44}},"45":{"start":{"line":128,"column":4},"end":{"line":128,"column":28}},"46":{"start":{"line":129,"column":4},"end":{"line":129,"column":32}},"47":{"start":{"line":130,"column":4},"end":{"line":130,"column":29}},"48":{"start":{"line":131,"column":4},"end":{"line":131,"column":44}},"49":{"start":{"line":140,"column":4},"end":{"line":147,"column":null}},"50":{"start":{"line":141,"column":19},"end":{"line":141,"column":51}},"51":{"start":{"line":142,"column":22},"end":{"line":142,"column":44}},"52":{"start":{"line":143,"column":6},"end":{"line":143,"column":20}},"53":{"start":{"line":144,"column":6},"end":{"line":144,"column":18}},"54":{"start":{"line":145,"column":6},"end":{"line":145,"column":36}},"55":{"start":{"line":146,"column":6},"end":{"line":146,"column":34}},"56":{"start":{"line":151,"column":4},"end":{"line":153,"column":null}},"57":{"start":{"line":152,"column":6},"end":{"line":152,"column":13}},"58":{"start":{"line":155,"column":4},"end":{"line":155,"column":45}},"59":{"start":{"line":162,"column":20},"end":{"line":162,"column":39}},"60":{"start":{"line":163,"column":4},"end":{"line":170,"column":null}},"61":{"start":{"line":164,"column":6},"end":{"line":166,"column":null}},"62":{"start":{"line":165,"column":8},"end":{"line":165,"column":21}},"63":{"start":{"line":168,"column":19},"end":{"line":168,"column":69}},"64":{"start":{"line":169,"column":6},"end":{"line":169,"column":25}},"65":{"start":{"line":172,"column":4},"end":{"line":189,"column":7}},"66":{"start":{"line":173,"column":6},"end":{"line":173,"column":55}},"67":{"start":{"line":175,"column":6},"end":{"line":175,"column":49}},"68":{"start":{"line":177,"column":6},"end":{"line":182,"column":null}},"69":{"start":{"line":178,"column":27},"end":{"line":178,"column":74}},"70":{"start":{"line":179,"column":8},"end":{"line":179,"column":83}},"71":{"start":{"line":180,"column":8},"end":{"line":180,"column":52}},"72":{"start":{"line":181,"column":8},"end":{"line":181,"column":26}},"73":{"start":{"line":184,"column":6},"end":{"line":184,"column":56}},"74":{"start":{"line":185,"column":6},"end":{"line":185,"column":85}},"75":{"start":{"line":186,"column":6},"end":{"line":186,"column":24}},"76":{"start":{"line":188,"column":6},"end":{"line":188,"column":24}},"77":{"start":{"line":191,"column":4},"end":{"line":191,"column":16}},"78":{"start":{"line":195,"column":4},"end":{"line":214,"column":7}},"79":{"start":{"line":196,"column":6},"end":{"line":196,"column":67}},"80":{"start":{"line":197,"column":6},"end":{"line":197,"column":53}},"81":{"start":{"line":199,"column":6},"end":{"line":211,"column":null}},"82":{"start":{"line":201,"column":8},"end":{"line":203,"column":null}},"83":{"start":{"line":202,"column":10},"end":{"line":202,"column":19}},"84":{"start":{"line":205,"column":8},"end":{"line":208,"column":null}},"85":{"start":{"line":206,"column":10},"end":{"line":206,"column":110}},"86":{"start":{"line":207,"column":10},"end":{"line":207,"column":19}},"87":{"start":{"line":210,"column":8},"end":{"line":210,"column":74}},"88":{"start":{"line":213,"column":6},"end":{"line":213,"column":24}},"89":{"start":{"line":218,"column":25},"end":{"line":218,"column":29}},"90":{"start":{"line":222,"column":4},"end":{"line":224,"column":null}},"91":{"start":{"line":223,"column":6},"end":{"line":223,"column":36}},"92":{"start":{"line":228,"column":4},"end":{"line":230,"column":null}},"93":{"start":{"line":229,"column":6},"end":{"line":229,"column":31}},"94":{"start":{"line":232,"column":4},"end":{"line":232,"column":84}},"95":{"start":{"line":233,"column":25},"end":{"line":233,"column":78}},"96":{"start":{"line":234,"column":21},"end":{"line":234,"column":61}},"97":{"start":{"line":235,"column":21},"end":{"line":235,"column":40}},"98":{"start":{"line":237,"column":4},"end":{"line":237,"column":63}},"99":{"start":{"line":238,"column":4},"end":{"line":238,"column":16}},"100":{"start":{"line":243,"column":4},"end":{"line":270,"column":7}},"101":{"start":{"line":245,"column":6},"end":{"line":247,"column":null}},"102":{"start":{"line":246,"column":8},"end":{"line":246,"column":77}},"103":{"start":{"line":249,"column":6},"end":{"line":251,"column":null}},"104":{"start":{"line":250,"column":8},"end":{"line":250,"column":58}},"105":{"start":{"line":253,"column":6},"end":{"line":253,"column":61}},"106":{"start":{"line":255,"column":6},"end":{"line":255,"column":48}},"107":{"start":{"line":257,"column":6},"end":{"line":267,"column":null}},"108":{"start":{"line":258,"column":8},"end":{"line":260,"column":null}},"109":{"start":{"line":259,"column":10},"end":{"line":259,"column":71}},"110":{"start":{"line":263,"column":27},"end":{"line":263,"column":128}},"111":{"start":{"line":263,"column":102},"end":{"line":263,"column":103}},"112":{"start":{"line":265,"column":8},"end":{"line":265,"column":37}},"113":{"start":{"line":266,"column":8},"end":{"line":266,"column":49}},"114":{"start":{"line":269,"column":6},"end":{"line":269,"column":24}},"115":{"start":{"line":272,"column":4},"end":{"line":272,"column":20}},"116":{"start":{"line":276,"column":4},"end":{"line":276,"column":21}},"117":{"start":{"line":278,"column":4},"end":{"line":290,"column":null}},"118":{"start":{"line":279,"column":6},"end":{"line":279,"column":55}},"119":{"start":{"line":281,"column":29},"end":{"line":281,"column":76}},"120":{"start":{"line":282,"column":18},"end":{"line":282,"column":53}},"121":{"start":{"line":284,"column":6},"end":{"line":284,"column":37}},"122":{"start":{"line":285,"column":6},"end":{"line":287,"column":null}},"123":{"start":{"line":286,"column":8},"end":{"line":286,"column":37}},"124":{"start":{"line":289,"column":6},"end":{"line":289,"column":22}},"125":{"start":{"line":292,"column":4},"end":{"line":292,"column":32}},"126":{"start":{"line":294,"column":4},"end":{"line":296,"column":null}},"127":{"start":{"line":295,"column":6},"end":{"line":295,"column":40}},"128":{"start":{"line":298,"column":4},"end":{"line":298,"column":null}},"129":{"start":{"line":302,"column":20},"end":{"line":302,"column":96}},"130":{"start":{"line":302,"column":70},"end":{"line":302,"column":85}},"131":{"start":{"line":303,"column":4},"end":{"line":303,"column":48}},"132":{"start":{"line":307,"column":19},"end":{"line":307,"column":35}},"133":{"start":{"line":308,"column":4},"end":{"line":310,"column":null}},"134":{"start":{"line":309,"column":6},"end":{"line":309,"column":61}},"135":{"start":{"line":312,"column":4},"end":{"line":314,"column":null}},"136":{"start":{"line":313,"column":6},"end":{"line":313,"column":19}},"137":{"start":{"line":316,"column":18},"end":{"line":316,"column":62}},"138":{"start":{"line":317,"column":21},"end":{"line":317,"column":63}},"139":{"start":{"line":318,"column":19},"end":{"line":318,"column":45}},"140":{"start":{"line":319,"column":4},"end":{"line":319,"column":53}},"141":{"start":{"line":323,"column":4},"end":{"line":325,"column":null}},"142":{"start":{"line":324,"column":6},"end":{"line":324,"column":61}},"143":{"start":{"line":327,"column":4},"end":{"line":327,"column":56}},"144":{"start":{"line":331,"column":16},"end":{"line":331,"column":24}},"145":{"start":{"line":332,"column":4},"end":{"line":334,"column":null}},"146":{"start":{"line":333,"column":6},"end":{"line":333,"column":53}},"147":{"start":{"line":336,"column":19},"end":{"line":336,"column":56}},"148":{"start":{"line":337,"column":18},"end":{"line":337,"column":42}},"149":{"start":{"line":338,"column":4},"end":{"line":340,"column":null}},"150":{"start":{"line":339,"column":6},"end":{"line":339,"column":78}},"151":{"start":{"line":342,"column":4},"end":{"line":342,"column":17}},"152":{"start":{"line":346,"column":4},"end":{"line":346,"column":86}},"153":{"start":{"line":350,"column":4},"end":{"line":355,"column":null}},"154":{"start":{"line":351,"column":17},"end":{"line":351,"column":36}},"155":{"start":{"line":352,"column":6},"end":{"line":354,"column":null}},"156":{"start":{"line":353,"column":8},"end":{"line":353,"column":20}},"157":{"start":{"line":357,"column":4},"end":{"line":357,"column":17}},"158":{"start":{"line":25,"column":0},"end":{"line":25,"column":13}},"159":{"start":{"line":368,"column":13},"end":{"line":368,"column":36}},"160":{"start":{"line":369,"column":15},"end":{"line":369,"column":23}},"161":{"start":{"line":371,"column":2},"end":{"line":380,"column":14}},"162":{"start":{"line":372,"column":4},"end":{"line":372,"column":26}},"163":{"start":{"line":373,"column":4},"end":{"line":379,"column":null}},"164":{"start":{"line":374,"column":21},"end":{"line":374,"column":45}},"165":{"start":{"line":375,"column":18},"end":{"line":375,"column":22}},"166":{"start":{"line":376,"column":21},"end":{"line":376,"column":56}},"167":{"start":{"line":377,"column":20},"end":{"line":377,"column":57}},"168":{"start":{"line":378,"column":6},"end":{"line":378,"column":39}},"169":{"start":{"line":382,"column":2},"end":{"line":382,"column":16}},"170":{"start":{"line":366,"column":0},"end":{"line":366,"column":16}},"171":{"start":{"line":386,"column":2},"end":{"line":386,"column":79}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":36,"column":2},"end":{"line":36,"column":14}},"loc":{"start":{"line":36,"column":49},"end":{"line":39,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":47,"column":9},"end":{"line":47,"column":17}},"loc":{"start":{"line":47,"column":82},"end":{"line":114,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":95,"column":75},"end":{"line":95,"column":76}},"loc":{"start":{"line":95,"column":80},"end":{"line":95,"column":102}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":121,"column":9},"end":{"line":121,"column":14}},"loc":{"start":{"line":121,"column":43},"end":{"line":132,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":139,"column":9},"end":{"line":139,"column":25}},"loc":{"start":{"line":139,"column":41},"end":{"line":148,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":150,"column":10},"end":{"line":150,"column":19}},"loc":{"start":{"line":150,"column":76},"end":{"line":156,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":161,"column":10},"end":{"line":161,"column":19}},"loc":{"start":{"line":161,"column":67},"end":{"line":192,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":172,"column":29},"end":{"line":172,"column":33}},"loc":{"start":{"line":172,"column":36},"end":{"line":189,"column":5}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":194,"column":10},"end":{"line":194,"column":20}},"loc":{"start":{"line":194,"column":80},"end":{"line":215,"column":3}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":195,"column":29},"end":{"line":195,"column":33}},"loc":{"start":{"line":195,"column":36},"end":{"line":214,"column":5}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":217,"column":10},"end":{"line":217,"column":22}},"loc":{"start":{"line":217,"column":117},"end":{"line":239,"column":3}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":241,"column":10},"end":{"line":241,"column":18}},"loc":{"start":{"line":241,"column":72},"end":{"line":273,"column":3}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":243,"column":29},"end":{"line":243,"column":33}},"loc":{"start":{"line":243,"column":36},"end":{"line":270,"column":5}}},"13":{"name":"(anonymous_13)","decl":{"start":{"line":263,"column":97},"end":{"line":263,"column":98}},"loc":{"start":{"line":263,"column":102},"end":{"line":263,"column":103}}},"14":{"name":"(anonymous_14)","decl":{"start":{"line":275,"column":10},"end":{"line":275,"column":25}},"loc":{"start":{"line":275,"column":123},"end":{"line":299,"column":3}}},"15":{"name":"(anonymous_15)","decl":{"start":{"line":301,"column":10},"end":{"line":301,"column":25}},"loc":{"start":{"line":301,"column":63},"end":{"line":304,"column":3}}},"16":{"name":"(anonymous_16)","decl":{"start":{"line":302,"column":65},"end":{"line":302,"column":66}},"loc":{"start":{"line":302,"column":70},"end":{"line":302,"column":85}}},"17":{"name":"(anonymous_17)","decl":{"start":{"line":306,"column":10},"end":{"line":306,"column":20}},"loc":{"start":{"line":306,"column":37},"end":{"line":320,"column":3}}},"18":{"name":"(anonymous_18)","decl":{"start":{"line":322,"column":10},"end":{"line":322,"column":22}},"loc":{"start":{"line":322,"column":60},"end":{"line":328,"column":3}}},"19":{"name":"(anonymous_19)","decl":{"start":{"line":330,"column":10},"end":{"line":330,"column":26}},"loc":{"start":{"line":330,"column":43},"end":{"line":343,"column":3}}},"20":{"name":"(anonymous_20)","decl":{"start":{"line":345,"column":10},"end":{"line":345,"column":28}},"loc":{"start":{"line":345,"column":69},"end":{"line":347,"column":3}}},"21":{"name":"(anonymous_21)","decl":{"start":{"line":349,"column":10},"end":{"line":349,"column":20}},"loc":{"start":{"line":349,"column":32},"end":{"line":358,"column":3}}},"22":{"name":"normalizeTypeName","decl":{"start":{"line":366,"column":16},"end":{"line":366,"column":33}},"loc":{"start":{"line":366,"column":50},"end":{"line":383,"column":1}}},"23":{"name":"supportedUnionOptionType","decl":{"start":{"line":385,"column":9},"end":{"line":385,"column":33}},"loc":{"start":{"line":385,"column":43},"end":{"line":387,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":36,"column":46},"end":{"line":36,"column":49}},"type":"default-arg","locations":[{"start":{"line":36,"column":46},"end":{"line":36,"column":49}}]},"1":{"loc":{"start":{"line":37,"column":34},"end":{"line":37,"column":38}},"type":"cond-expr","locations":[{"start":{"line":37,"column":34},"end":{"line":37,"column":38}},{"start":{"line":37,"column":38},"end":{"line":37,"column":40}}]},"2":{"loc":{"start":{"line":37,"column":16},"end":{"line":37,"column":38}},"type":"binary-expr","locations":[{"start":{"line":37,"column":16},"end":{"line":37,"column":38}},{"start":{"line":37,"column":34},"end":{"line":37,"column":38}}]},"3":{"loc":{"start":{"line":38,"column":42},"end":{"line":38,"column":46}},"type":"cond-expr","locations":[{"start":{"line":38,"column":42},"end":{"line":38,"column":46}},{"start":{"line":38,"column":46},"end":{"line":38,"column":49}}]},"4":{"loc":{"start":{"line":38,"column":20},"end":{"line":38,"column":46}},"type":"binary-expr","locations":[{"start":{"line":38,"column":20},"end":{"line":38,"column":46}},{"start":{"line":38,"column":42},"end":{"line":38,"column":46}}]},"5":{"loc":{"start":{"line":47,"column":74},"end":{"line":47,"column":82}},"type":"default-arg","locations":[{"start":{"line":47,"column":74},"end":{"line":47,"column":82}}]},"6":{"loc":{"start":{"line":50,"column":4},"end":{"line":52,"column":null}},"type":"if","locations":[{"start":{"line":50,"column":4},"end":{"line":52,"column":null}},{"start":{"line":50,"column":4},"end":{"line":52,"column":null}}]},"7":{"loc":{"start":{"line":54,"column":4},"end":{"line":56,"column":null}},"type":"if","locations":[{"start":{"line":54,"column":4},"end":{"line":56,"column":null}},{"start":{"line":54,"column":4},"end":{"line":56,"column":null}}]},"8":{"loc":{"start":{"line":58,"column":4},"end":{"line":60,"column":null}},"type":"if","locations":[{"start":{"line":58,"column":4},"end":{"line":60,"column":null}},{"start":{"line":58,"column":4},"end":{"line":60,"column":null}}]},"9":{"loc":{"start":{"line":62,"column":4},"end":{"line":64,"column":null}},"type":"if","locations":[{"start":{"line":62,"column":4},"end":{"line":64,"column":null}},{"start":{"line":62,"column":4},"end":{"line":64,"column":null}}]},"10":{"loc":{"start":{"line":67,"column":4},"end":{"line":73,"column":null}},"type":"if","locations":[{"start":{"line":67,"column":4},"end":{"line":73,"column":null}},{"start":{"line":67,"column":4},"end":{"line":73,"column":null}}]},"11":{"loc":{"start":{"line":67,"column":8},"end":{"line":67,"column":17}},"type":"binary-expr","locations":[{"start":{"line":67,"column":8},"end":{"line":67,"column":17}},{"start":{"line":67,"column":21},"end":{"line":67,"column":30}}]},"12":{"loc":{"start":{"line":68,"column":6},"end":{"line":70,"column":null}},"type":"if","locations":[{"start":{"line":68,"column":6},"end":{"line":70,"column":null}},{"start":{"line":68,"column":6},"end":{"line":70,"column":null}}]},"13":{"loc":{"start":{"line":75,"column":4},"end":{"line":77,"column":null}},"type":"if","locations":[{"start":{"line":75,"column":4},"end":{"line":77,"column":null}},{"start":{"line":75,"column":4},"end":{"line":77,"column":null}}]},"14":{"loc":{"start":{"line":75,"column":8},"end":{"line":75,"column":29}},"type":"binary-expr","locations":[{"start":{"line":75,"column":8},"end":{"line":75,"column":29}},{"start":{"line":75,"column":33},"end":{"line":75,"column":59}}]},"15":{"loc":{"start":{"line":80,"column":6},"end":{"line":80,"column":39}},"type":"switch","locations":[{"start":{"line":80,"column":6},"end":{"line":80,"column":39}},{"start":{"line":81,"column":6},"end":{"line":81,"column":67}},{"start":{"line":82,"column":6},"end":{"line":82,"column":31}},{"start":{"line":83,"column":6},"end":{"line":83,"column":32}}]},"16":{"loc":{"start":{"line":86,"column":4},"end":{"line":88,"column":null}},"type":"if","locations":[{"start":{"line":86,"column":4},"end":{"line":88,"column":null}},{"start":{"line":86,"column":4},"end":{"line":88,"column":null}}]},"17":{"loc":{"start":{"line":86,"column":8},"end":{"line":86,"column":29}},"type":"binary-expr","locations":[{"start":{"line":86,"column":8},"end":{"line":86,"column":29}},{"start":{"line":86,"column":33},"end":{"line":86,"column":55}}]},"18":{"loc":{"start":{"line":90,"column":4},"end":{"line":100,"column":null}},"type":"if","locations":[{"start":{"line":90,"column":4},"end":{"line":100,"column":null}},{"start":{"line":90,"column":4},"end":{"line":100,"column":null}}]},"19":{"loc":{"start":{"line":91,"column":6},"end":{"line":93,"column":null}},"type":"if","locations":[{"start":{"line":91,"column":6},"end":{"line":93,"column":null}},{"start":{"line":91,"column":6},"end":{"line":93,"column":null}}]},"20":{"loc":{"start":{"line":95,"column":6},"end":{"line":97,"column":null}},"type":"if","locations":[{"start":{"line":95,"column":6},"end":{"line":97,"column":null}},{"start":{"line":95,"column":6},"end":{"line":97,"column":null}}]},"21":{"loc":{"start":{"line":95,"column":10},"end":{"line":95,"column":33}},"type":"binary-expr","locations":[{"start":{"line":95,"column":10},"end":{"line":95,"column":33}},{"start":{"line":95,"column":37},"end":{"line":95,"column":56}},{"start":{"line":95,"column":60},"end":{"line":95,"column":103}}]},"22":{"loc":{"start":{"line":103,"column":4},"end":{"line":105,"column":null}},"type":"if","locations":[{"start":{"line":103,"column":4},"end":{"line":105,"column":null}},{"start":{"line":103,"column":4},"end":{"line":105,"column":null}}]},"23":{"loc":{"start":{"line":103,"column":8},"end":{"line":103,"column":23}},"type":"binary-expr","locations":[{"start":{"line":103,"column":8},"end":{"line":103,"column":23}},{"start":{"line":103,"column":27},"end":{"line":103,"column":51}},{"start":{"line":103,"column":55},"end":{"line":103,"column":100}}]},"24":{"loc":{"start":{"line":108,"column":4},"end":{"line":111,"column":null}},"type":"if","locations":[{"start":{"line":108,"column":4},"end":{"line":111,"column":null}},{"start":{"line":108,"column":4},"end":{"line":111,"column":null}}]},"25":{"loc":{"start":{"line":122,"column":4},"end":{"line":124,"column":null}},"type":"if","locations":[{"start":{"line":122,"column":4},"end":{"line":124,"column":null}},{"start":{"line":122,"column":4},"end":{"line":124,"column":null}}]},"26":{"loc":{"start":{"line":151,"column":4},"end":{"line":153,"column":null}},"type":"if","locations":[{"start":{"line":151,"column":4},"end":{"line":153,"column":null}},{"start":{"line":151,"column":4},"end":{"line":153,"column":null}}]},"27":{"loc":{"start":{"line":163,"column":25},"end":{"line":163,"column":34}},"type":"binary-expr","locations":[{"start":{"line":163,"column":25},"end":{"line":163,"column":34}},{"start":{"line":163,"column":38},"end":{"line":163,"column":47}},{"start":{"line":163,"column":51},"end":{"line":163,"column":53}}]},"28":{"loc":{"start":{"line":164,"column":6},"end":{"line":166,"column":null}},"type":"if","locations":[{"start":{"line":164,"column":6},"end":{"line":166,"column":null}},{"start":{"line":164,"column":6},"end":{"line":166,"column":null}}]},"29":{"loc":{"start":{"line":168,"column":47},"end":{"line":168,"column":55}},"type":"cond-expr","locations":[{"start":{"line":168,"column":47},"end":{"line":168,"column":55}},{"start":{"line":168,"column":58},"end":{"line":168,"column":69}}]},"30":{"loc":{"start":{"line":199,"column":58},"end":{"line":199,"column":78}},"type":"binary-expr","locations":[{"start":{"line":199,"column":58},"end":{"line":199,"column":78}},{"start":{"line":199,"column":82},"end":{"line":199,"column":84}}]},"31":{"loc":{"start":{"line":201,"column":8},"end":{"line":203,"column":null}},"type":"if","locations":[{"start":{"line":201,"column":8},"end":{"line":203,"column":null}},{"start":{"line":201,"column":8},"end":{"line":203,"column":null}}]},"32":{"loc":{"start":{"line":205,"column":8},"end":{"line":208,"column":null}},"type":"if","locations":[{"start":{"line":205,"column":8},"end":{"line":208,"column":null}},{"start":{"line":205,"column":8},"end":{"line":208,"column":null}}]},"33":{"loc":{"start":{"line":222,"column":4},"end":{"line":224,"column":null}},"type":"if","locations":[{"start":{"line":222,"column":4},"end":{"line":224,"column":null}},{"start":{"line":222,"column":4},"end":{"line":224,"column":null}}]},"34":{"loc":{"start":{"line":228,"column":4},"end":{"line":230,"column":null}},"type":"if","locations":[{"start":{"line":228,"column":4},"end":{"line":230,"column":null}},{"start":{"line":228,"column":4},"end":{"line":230,"column":null}}]},"35":{"loc":{"start":{"line":235,"column":32},"end":{"line":235,"column":34}},"type":"cond-expr","locations":[{"start":{"line":235,"column":32},"end":{"line":235,"column":34}},{"start":{"line":235,"column":37},"end":{"line":235,"column":40}}]},"36":{"loc":{"start":{"line":245,"column":6},"end":{"line":247,"column":null}},"type":"if","locations":[{"start":{"line":245,"column":6},"end":{"line":247,"column":null}},{"start":{"line":245,"column":6},"end":{"line":247,"column":null}}]},"37":{"loc":{"start":{"line":245,"column":10},"end":{"line":245,"column":19}},"type":"binary-expr","locations":[{"start":{"line":245,"column":10},"end":{"line":245,"column":19}},{"start":{"line":245,"column":23},"end":{"line":245,"column":44}}]},"38":{"loc":{"start":{"line":249,"column":6},"end":{"line":251,"column":null}},"type":"if","locations":[{"start":{"line":249,"column":6},"end":{"line":251,"column":null}},{"start":{"line":249,"column":6},"end":{"line":251,"column":null}}]},"39":{"loc":{"start":{"line":258,"column":8},"end":{"line":260,"column":null}},"type":"if","locations":[{"start":{"line":258,"column":8},"end":{"line":260,"column":null}},{"start":{"line":258,"column":8},"end":{"line":260,"column":null}}]},"40":{"loc":{"start":{"line":275,"column":120},"end":{"line":275,"column":123}},"type":"default-arg","locations":[{"start":{"line":275,"column":120},"end":{"line":275,"column":123}}]},"41":{"loc":{"start":{"line":278,"column":4},"end":{"line":290,"column":null}},"type":"if","locations":[{"start":{"line":278,"column":4},"end":{"line":290,"column":null}},{"start":{"line":278,"column":4},"end":{"line":290,"column":null}}]},"42":{"loc":{"start":{"line":282,"column":18},"end":{"line":282,"column":32}},"type":"binary-expr","locations":[{"start":{"line":282,"column":18},"end":{"line":282,"column":32}},{"start":{"line":282,"column":36},"end":{"line":282,"column":53}}]},"43":{"loc":{"start":{"line":285,"column":6},"end":{"line":287,"column":null}},"type":"if","locations":[{"start":{"line":285,"column":6},"end":{"line":287,"column":null}},{"start":{"line":285,"column":6},"end":{"line":287,"column":null}}]},"44":{"loc":{"start":{"line":308,"column":4},"end":{"line":310,"column":null}},"type":"if","locations":[{"start":{"line":308,"column":4},"end":{"line":310,"column":null}},{"start":{"line":308,"column":4},"end":{"line":310,"column":null}}]},"45":{"loc":{"start":{"line":308,"column":8},"end":{"line":308,"column":17}},"type":"binary-expr","locations":[{"start":{"line":308,"column":8},"end":{"line":308,"column":17}},{"start":{"line":308,"column":21},"end":{"line":308,"column":49}}]},"46":{"loc":{"start":{"line":312,"column":4},"end":{"line":314,"column":null}},"type":"if","locations":[{"start":{"line":312,"column":4},"end":{"line":314,"column":null}},{"start":{"line":312,"column":4},"end":{"line":314,"column":null}}]},"47":{"loc":{"start":{"line":323,"column":4},"end":{"line":325,"column":null}},"type":"if","locations":[{"start":{"line":323,"column":4},"end":{"line":325,"column":null}},{"start":{"line":323,"column":4},"end":{"line":325,"column":null}}]},"48":{"loc":{"start":{"line":323,"column":8},"end":{"line":323,"column":18}},"type":"binary-expr","locations":[{"start":{"line":323,"column":8},"end":{"line":323,"column":18}},{"start":{"line":323,"column":22},"end":{"line":323,"column":52}}]},"49":{"loc":{"start":{"line":332,"column":4},"end":{"line":334,"column":null}},"type":"if","locations":[{"start":{"line":332,"column":4},"end":{"line":334,"column":null}},{"start":{"line":332,"column":4},"end":{"line":334,"column":null}}]},"50":{"loc":{"start":{"line":332,"column":8},"end":{"line":332,"column":12}},"type":"binary-expr","locations":[{"start":{"line":332,"column":8},"end":{"line":332,"column":12}},{"start":{"line":332,"column":16},"end":{"line":332,"column":51}}]},"51":{"loc":{"start":{"line":338,"column":4},"end":{"line":340,"column":null}},"type":"if","locations":[{"start":{"line":338,"column":4},"end":{"line":340,"column":null}},{"start":{"line":338,"column":4},"end":{"line":340,"column":null}}]},"52":{"loc":{"start":{"line":346,"column":11},"end":{"line":346,"column":44}},"type":"binary-expr","locations":[{"start":{"line":346,"column":11},"end":{"line":346,"column":44}},{"start":{"line":346,"column":48},"end":{"line":346,"column":85}}]},"53":{"loc":{"start":{"line":352,"column":6},"end":{"line":354,"column":null}},"type":"if","locations":[{"start":{"line":352,"column":6},"end":{"line":354,"column":null}},{"start":{"line":352,"column":6},"end":{"line":354,"column":null}}]},"54":{"loc":{"start":{"line":373,"column":4},"end":{"line":379,"column":null}},"type":"if","locations":[{"start":{"line":373,"column":4},"end":{"line":379,"column":null}},{"start":{"line":373,"column":4},"end":{"line":379,"column":null}}]},"55":{"loc":{"start":{"line":386,"column":9},"end":{"line":386,"column":13}},"type":"binary-expr","locations":[{"start":{"line":386,"column":9},"end":{"line":386,"column":13}},{"start":{"line":386,"column":18},"end":{"line":386,"column":43}},{"start":{"line":386,"column":47},"end":{"line":386,"column":77}}]}},"s":{"0":4,"1":4,"2":4,"3":4,"4":16,"5":16,"6":16,"7":16,"8":74,"9":0,"10":74,"11":7,"12":74,"13":0,"14":74,"15":9,"16":65,"17":2,"18":1,"19":64,"20":1,"21":63,"22":4,"23":3,"24":1,"25":1,"26":54,"27":10,"28":44,"29":17,"30":0,"31":17,"32":7,"33":2,"34":15,"35":27,"36":1,"37":26,"38":25,"39":25,"40":1,"41":1,"42":0,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":15,"50":25,"51":25,"52":25,"53":25,"54":25,"55":25,"56":28,"57":0,"58":28,"59":2,"60":2,"61":3,"62":1,"63":2,"64":2,"65":1,"66":1,"67":1,"68":1,"69":2,"70":2,"71":2,"72":2,"73":1,"74":1,"75":1,"76":1,"77":1,"78":25,"79":22,"80":22,"81":22,"82":46,"83":0,"84":46,"85":0,"86":0,"87":46,"88":22,"89":46,"90":46,"91":0,"92":46,"93":0,"94":46,"95":46,"96":46,"97":46,"98":46,"99":46,"100":2,"101":2,"102":0,"103":2,"104":0,"105":2,"106":2,"107":2,"108":7,"109":0,"110":7,"111":17,"112":7,"113":7,"114":2,"115":2,"116":71,"117":71,"118":22,"119":22,"120":22,"121":22,"122":22,"123":5,"124":22,"125":71,"126":71,"127":76,"128":71,"129":50,"130":152,"131":50,"132":9,"133":9,"134":1,"135":8,"136":0,"137":8,"138":8,"139":8,"140":7,"141":3,"142":0,"143":3,"144":8,"145":8,"146":0,"147":8,"148":8,"149":8,"150":1,"151":7,"152":46,"153":82,"154":0,"155":0,"156":0,"157":82,"158":4,"159":142,"160":142,"161":142,"162":152,"163":152,"164":10,"165":10,"166":10,"167":10,"168":10,"169":142,"170":4,"171":3},"f":{"0":16,"1":74,"2":7,"3":1,"4":15,"5":28,"6":2,"7":1,"8":25,"9":22,"10":46,"11":2,"12":2,"13":17,"14":71,"15":50,"16":152,"17":9,"18":3,"19":8,"20":46,"21":82,"22":142,"23":3},"b":{"0":[12],"1":[0,16],"2":[16,16],"3":[4,12],"4":[16,16],"5":[4],"6":[0,74],"7":[7,67],"8":[0,74],"9":[9,65],"10":[2,63],"11":[65,63],"12":[1,1],"13":[1,63],"14":[64,18],"15":[4,3,1,1],"16":[10,44],"17":[54,51],"18":[17,27],"19":[0,17],"20":[2,15],"21":[17,2,2],"22":[1,26],"23":[27,2,1],"24":[25,1],"25":[0,1],"26":[0,28],"27":[2,0,0],"28":[1,2],"29":[0,2],"30":[22,0],"31":[0,46],"32":[0,46],"33":[0,46],"34":[0,46],"35":[10,36],"36":[0,2],"37":[2,2],"38":[0,2],"39":[0,7],"40":[71],"41":[22,49],"42":[22,5],"43":[5,17],"44":[1,8],"45":[9,9],"46":[0,8],"47":[0,3],"48":[3,3],"49":[0,8],"50":[8,8],"51":[1,7],"52":[46,16],"53":[0,0],"54":[10,142],"55":[3,2,2]}} | ||
{"/home/runner/work/json2jsii/json2jsii/lib/code.ts": {"path":"/home/runner/work/json2jsii/json2jsii/lib/code.ts","statementMap":{"0":{"start":{"line":2,"column":18},"end":{"line":2,"column":46}},"1":{"start":{"line":3,"column":10},"end":{"line":3,"column":21}},"2":{"start":{"line":6,"column":4},"end":{"line":6,"column":20}},"3":{"start":{"line":7,"column":4},"end":{"line":7,"column":21}},"4":{"start":{"line":11,"column":4},"end":{"line":11,"column":21}},"5":{"start":{"line":12,"column":4},"end":{"line":12,"column":20}},"6":{"start":{"line":16,"column":4},"end":{"line":16,"column":27}},"7":{"start":{"line":20,"column":4},"end":{"line":20,"column":20}},"8":{"start":{"line":24,"column":17},"end":{"line":24,"column":47}},"9":{"start":{"line":25,"column":4},"end":{"line":25,"column":26}},"10":{"start":{"line":29,"column":4},"end":{"line":29,"column":33}},"11":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":13}},"loc":{"start":{"line":1,"column":0},"end":{"line":31,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":5,"column":9},"end":{"line":5,"column":13}},"loc":{"start":{"line":5,"column":31},"end":{"line":8,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":14}},"loc":{"start":{"line":10,"column":32},"end":{"line":13,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":15,"column":9},"end":{"line":15,"column":18}},"loc":{"start":{"line":15,"column":31},"end":{"line":17,"column":3}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":19,"column":9},"end":{"line":19,"column":19}},"loc":{"start":{"line":19,"column":19},"end":{"line":21,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":23,"column":9},"end":{"line":23,"column":13}},"loc":{"start":{"line":23,"column":31},"end":{"line":26,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":28,"column":9},"end":{"line":28,"column":15}},"loc":{"start":{"line":28,"column":15},"end":{"line":30,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":29},"end":{"line":5,"column":31}},"type":"default-arg","locations":[{"start":{"line":5,"column":29},"end":{"line":5,"column":31}}]},"1":{"loc":{"start":{"line":10,"column":30},"end":{"line":10,"column":32}},"type":"default-arg","locations":[{"start":{"line":10,"column":30},"end":{"line":10,"column":32}}]},"2":{"loc":{"start":{"line":23,"column":29},"end":{"line":23,"column":31}},"type":"default-arg","locations":[{"start":{"line":23,"column":29},"end":{"line":23,"column":31}}]}},"s":{"0":15,"1":15,"2":28,"3":28,"4":28,"5":28,"6":28,"7":28,"8":452,"9":452,"10":15,"11":4},"f":{"0":15,"1":28,"2":28,"3":28,"4":28,"5":452,"6":15},"b":{"0":[0],"1":[0],"2":[71]}} | ||
,"/home/runner/work/json2jsii/json2jsii/lib/index.ts": {"path":"/home/runner/work/json2jsii/json2jsii/lib/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}}},"fnMap":{},"branchMap":{},"s":{"0":4},"f":{},"b":{}} | ||
,"/home/runner/work/json2jsii/json2jsii/lib/type-generator.ts": {"path":"/home/runner/work/json2jsii/json2jsii/lib/type-generator.ts","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":30}},"1":{"start":{"line":4,"column":0},"end":{"line":4,"column":39}},"2":{"start":{"line":5,"column":0},"end":{"line":5,"column":39}},"3":{"start":{"line":7,"column":24},"end":{"line":7,"column":68}},"4":{"start":{"line":8,"column":27},"end":{"line":8,"column":43}},"5":{"start":{"line":52,"column":19},"end":{"line":52,"column":79}},"6":{"start":{"line":53,"column":19},"end":{"line":53,"column":52}},"7":{"start":{"line":63,"column":4},"end":{"line":63,"column":41}},"8":{"start":{"line":64,"column":4},"end":{"line":64,"column":50}},"9":{"start":{"line":35,"column":15},"end":{"line":35,"column":38}},"10":{"start":{"line":36,"column":17},"end":{"line":36,"column":25}},"11":{"start":{"line":38,"column":4},"end":{"line":47,"column":16}},"12":{"start":{"line":39,"column":6},"end":{"line":39,"column":28}},"13":{"start":{"line":40,"column":6},"end":{"line":46,"column":null}},"14":{"start":{"line":41,"column":23},"end":{"line":41,"column":47}},"15":{"start":{"line":42,"column":20},"end":{"line":42,"column":24}},"16":{"start":{"line":43,"column":23},"end":{"line":43,"column":58}},"17":{"start":{"line":44,"column":22},"end":{"line":44,"column":59}},"18":{"start":{"line":45,"column":8},"end":{"line":45,"column":41}},"19":{"start":{"line":49,"column":4},"end":{"line":49,"column":18}},"20":{"start":{"line":76,"column":4},"end":{"line":78,"column":null}},"21":{"start":{"line":77,"column":6},"end":{"line":77,"column":80}},"22":{"start":{"line":80,"column":4},"end":{"line":82,"column":null}},"23":{"start":{"line":81,"column":6},"end":{"line":81,"column":65}},"24":{"start":{"line":84,"column":4},"end":{"line":86,"column":null}},"25":{"start":{"line":85,"column":6},"end":{"line":85,"column":106}},"26":{"start":{"line":88,"column":4},"end":{"line":90,"column":null}},"27":{"start":{"line":89,"column":6},"end":{"line":89,"column":34}},"28":{"start":{"line":93,"column":4},"end":{"line":99,"column":null}},"29":{"start":{"line":94,"column":6},"end":{"line":96,"column":null}},"30":{"start":{"line":95,"column":8},"end":{"line":95,"column":24}},"31":{"start":{"line":101,"column":4},"end":{"line":103,"column":null}},"32":{"start":{"line":102,"column":6},"end":{"line":102,"column":20}},"33":{"start":{"line":105,"column":4},"end":{"line":110,"column":null}},"34":{"start":{"line":106,"column":22},"end":{"line":106,"column":39}},"35":{"start":{"line":107,"column":20},"end":{"line":107,"column":67}},"36":{"start":{"line":108,"column":18},"end":{"line":108,"column":31}},"37":{"start":{"line":109,"column":19},"end":{"line":109,"column":32}},"38":{"start":{"line":112,"column":4},"end":{"line":114,"column":null}},"39":{"start":{"line":113,"column":6},"end":{"line":113,"column":22}},"40":{"start":{"line":116,"column":4},"end":{"line":126,"column":null}},"41":{"start":{"line":117,"column":6},"end":{"line":119,"column":null}},"42":{"start":{"line":118,"column":8},"end":{"line":118,"column":22}},"43":{"start":{"line":121,"column":6},"end":{"line":123,"column":null}},"44":{"start":{"line":121,"column":80},"end":{"line":121,"column":102}},"45":{"start":{"line":122,"column":8},"end":{"line":122,"column":55}},"46":{"start":{"line":125,"column":6},"end":{"line":125,"column":22}},"47":{"start":{"line":129,"column":4},"end":{"line":131,"column":null}},"48":{"start":{"line":130,"column":6},"end":{"line":130,"column":94}},"49":{"start":{"line":134,"column":4},"end":{"line":137,"column":null}},"50":{"start":{"line":135,"column":6},"end":{"line":135,"column":null}},"51":{"start":{"line":136,"column":6},"end":{"line":136,"column":22}},"52":{"start":{"line":139,"column":4},"end":{"line":139,"column":17}},"53":{"start":{"line":148,"column":4},"end":{"line":150,"column":null}},"54":{"start":{"line":149,"column":6},"end":{"line":149,"column":13}},"55":{"start":{"line":152,"column":4},"end":{"line":152,"column":45}},"56":{"start":{"line":156,"column":17},"end":{"line":156,"column":27}},"57":{"start":{"line":157,"column":4},"end":{"line":157,"column":24}},"58":{"start":{"line":158,"column":4},"end":{"line":158,"column":25}},"59":{"start":{"line":167,"column":4},"end":{"line":174,"column":null}},"60":{"start":{"line":168,"column":19},"end":{"line":168,"column":51}},"61":{"start":{"line":169,"column":22},"end":{"line":169,"column":44}},"62":{"start":{"line":170,"column":6},"end":{"line":170,"column":20}},"63":{"start":{"line":171,"column":6},"end":{"line":171,"column":18}},"64":{"start":{"line":172,"column":6},"end":{"line":172,"column":36}},"65":{"start":{"line":173,"column":6},"end":{"line":173,"column":34}},"66":{"start":{"line":180,"column":20},"end":{"line":180,"column":39}},"67":{"start":{"line":181,"column":4},"end":{"line":188,"column":null}},"68":{"start":{"line":182,"column":6},"end":{"line":184,"column":null}},"69":{"start":{"line":183,"column":8},"end":{"line":183,"column":21}},"70":{"start":{"line":186,"column":19},"end":{"line":186,"column":69}},"71":{"start":{"line":187,"column":6},"end":{"line":187,"column":25}},"72":{"start":{"line":190,"column":4},"end":{"line":207,"column":7}},"73":{"start":{"line":191,"column":6},"end":{"line":191,"column":55}},"74":{"start":{"line":193,"column":6},"end":{"line":193,"column":49}},"75":{"start":{"line":195,"column":6},"end":{"line":200,"column":null}},"76":{"start":{"line":196,"column":27},"end":{"line":196,"column":74}},"77":{"start":{"line":197,"column":8},"end":{"line":197,"column":83}},"78":{"start":{"line":198,"column":8},"end":{"line":198,"column":52}},"79":{"start":{"line":199,"column":8},"end":{"line":199,"column":26}},"80":{"start":{"line":202,"column":6},"end":{"line":202,"column":56}},"81":{"start":{"line":203,"column":6},"end":{"line":203,"column":85}},"82":{"start":{"line":204,"column":6},"end":{"line":204,"column":24}},"83":{"start":{"line":206,"column":6},"end":{"line":206,"column":24}},"84":{"start":{"line":209,"column":4},"end":{"line":209,"column":16}},"85":{"start":{"line":213,"column":4},"end":{"line":232,"column":7}},"86":{"start":{"line":214,"column":6},"end":{"line":214,"column":67}},"87":{"start":{"line":215,"column":6},"end":{"line":215,"column":53}},"88":{"start":{"line":217,"column":6},"end":{"line":229,"column":null}},"89":{"start":{"line":219,"column":8},"end":{"line":221,"column":null}},"90":{"start":{"line":220,"column":10},"end":{"line":220,"column":19}},"91":{"start":{"line":223,"column":8},"end":{"line":226,"column":null}},"92":{"start":{"line":224,"column":10},"end":{"line":224,"column":110}},"93":{"start":{"line":225,"column":10},"end":{"line":225,"column":19}},"94":{"start":{"line":228,"column":8},"end":{"line":228,"column":74}},"95":{"start":{"line":231,"column":6},"end":{"line":231,"column":24}},"96":{"start":{"line":236,"column":25},"end":{"line":236,"column":29}},"97":{"start":{"line":240,"column":4},"end":{"line":242,"column":null}},"98":{"start":{"line":241,"column":6},"end":{"line":241,"column":29}},"99":{"start":{"line":246,"column":4},"end":{"line":248,"column":null}},"100":{"start":{"line":247,"column":6},"end":{"line":247,"column":31}},"101":{"start":{"line":250,"column":4},"end":{"line":250,"column":84}},"102":{"start":{"line":251,"column":25},"end":{"line":251,"column":78}},"103":{"start":{"line":252,"column":21},"end":{"line":252,"column":61}},"104":{"start":{"line":253,"column":21},"end":{"line":253,"column":40}},"105":{"start":{"line":255,"column":4},"end":{"line":255,"column":63}},"106":{"start":{"line":256,"column":4},"end":{"line":256,"column":16}},"107":{"start":{"line":261,"column":4},"end":{"line":288,"column":7}},"108":{"start":{"line":263,"column":6},"end":{"line":265,"column":null}},"109":{"start":{"line":264,"column":8},"end":{"line":264,"column":77}},"110":{"start":{"line":267,"column":6},"end":{"line":269,"column":null}},"111":{"start":{"line":268,"column":8},"end":{"line":268,"column":58}},"112":{"start":{"line":271,"column":6},"end":{"line":271,"column":61}},"113":{"start":{"line":273,"column":6},"end":{"line":273,"column":48}},"114":{"start":{"line":275,"column":6},"end":{"line":285,"column":null}},"115":{"start":{"line":276,"column":8},"end":{"line":278,"column":null}},"116":{"start":{"line":277,"column":10},"end":{"line":277,"column":71}},"117":{"start":{"line":281,"column":27},"end":{"line":281,"column":121}},"118":{"start":{"line":281,"column":95},"end":{"line":281,"column":96}},"119":{"start":{"line":283,"column":8},"end":{"line":283,"column":37}},"120":{"start":{"line":284,"column":8},"end":{"line":284,"column":49}},"121":{"start":{"line":287,"column":6},"end":{"line":287,"column":24}},"122":{"start":{"line":290,"column":4},"end":{"line":290,"column":20}},"123":{"start":{"line":294,"column":4},"end":{"line":294,"column":21}},"124":{"start":{"line":296,"column":4},"end":{"line":308,"column":null}},"125":{"start":{"line":297,"column":6},"end":{"line":297,"column":55}},"126":{"start":{"line":299,"column":29},"end":{"line":299,"column":76}},"127":{"start":{"line":300,"column":18},"end":{"line":300,"column":53}},"128":{"start":{"line":302,"column":6},"end":{"line":302,"column":37}},"129":{"start":{"line":303,"column":6},"end":{"line":305,"column":null}},"130":{"start":{"line":304,"column":8},"end":{"line":304,"column":37}},"131":{"start":{"line":307,"column":6},"end":{"line":307,"column":22}},"132":{"start":{"line":310,"column":4},"end":{"line":310,"column":32}},"133":{"start":{"line":312,"column":4},"end":{"line":314,"column":null}},"134":{"start":{"line":313,"column":6},"end":{"line":313,"column":40}},"135":{"start":{"line":316,"column":4},"end":{"line":316,"column":null}},"136":{"start":{"line":320,"column":20},"end":{"line":320,"column":108}},"137":{"start":{"line":320,"column":84},"end":{"line":320,"column":97}},"138":{"start":{"line":321,"column":4},"end":{"line":321,"column":47}},"139":{"start":{"line":325,"column":19},"end":{"line":325,"column":35}},"140":{"start":{"line":326,"column":4},"end":{"line":328,"column":null}},"141":{"start":{"line":327,"column":6},"end":{"line":327,"column":61}},"142":{"start":{"line":330,"column":4},"end":{"line":332,"column":null}},"143":{"start":{"line":331,"column":6},"end":{"line":331,"column":19}},"144":{"start":{"line":334,"column":18},"end":{"line":334,"column":62}},"145":{"start":{"line":335,"column":21},"end":{"line":335,"column":77}},"146":{"start":{"line":336,"column":19},"end":{"line":336,"column":45}},"147":{"start":{"line":337,"column":4},"end":{"line":337,"column":52}},"148":{"start":{"line":341,"column":4},"end":{"line":343,"column":null}},"149":{"start":{"line":342,"column":6},"end":{"line":342,"column":61}},"150":{"start":{"line":345,"column":4},"end":{"line":345,"column":56}},"151":{"start":{"line":349,"column":16},"end":{"line":349,"column":24}},"152":{"start":{"line":350,"column":4},"end":{"line":352,"column":null}},"153":{"start":{"line":351,"column":6},"end":{"line":351,"column":53}},"154":{"start":{"line":354,"column":19},"end":{"line":354,"column":56}},"155":{"start":{"line":355,"column":18},"end":{"line":355,"column":42}},"156":{"start":{"line":356,"column":4},"end":{"line":358,"column":null}},"157":{"start":{"line":357,"column":6},"end":{"line":357,"column":78}},"158":{"start":{"line":360,"column":4},"end":{"line":360,"column":17}},"159":{"start":{"line":364,"column":4},"end":{"line":364,"column":86}},"160":{"start":{"line":368,"column":4},"end":{"line":373,"column":null}},"161":{"start":{"line":369,"column":17},"end":{"line":369,"column":36}},"162":{"start":{"line":370,"column":6},"end":{"line":372,"column":null}},"163":{"start":{"line":371,"column":8},"end":{"line":371,"column":20}},"164":{"start":{"line":375,"column":4},"end":{"line":375,"column":17}},"165":{"start":{"line":27,"column":0},"end":{"line":27,"column":13}},"166":{"start":{"line":380,"column":2},"end":{"line":380,"column":79}},"167":{"start":{"line":384,"column":2},"end":{"line":384,"column":44}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":62,"column":2},"end":{"line":62,"column":14}},"loc":{"start":{"line":62,"column":49},"end":{"line":65,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":33,"column":9},"end":{"line":33,"column":15}},"loc":{"start":{"line":33,"column":50},"end":{"line":50,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":73,"column":9},"end":{"line":73,"column":16}},"loc":{"start":{"line":73,"column":81},"end":{"line":140,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":121,"column":75},"end":{"line":121,"column":76}},"loc":{"start":{"line":121,"column":80},"end":{"line":121,"column":102}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":147,"column":9},"end":{"line":147,"column":16}},"loc":{"start":{"line":147,"column":68},"end":{"line":153,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":155,"column":9},"end":{"line":155,"column":15}},"loc":{"start":{"line":155,"column":15},"end":{"line":159,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":166,"column":9},"end":{"line":166,"column":17}},"loc":{"start":{"line":166,"column":28},"end":{"line":175,"column":3}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":179,"column":10},"end":{"line":179,"column":19}},"loc":{"start":{"line":179,"column":67},"end":{"line":210,"column":3}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":190,"column":27},"end":{"line":190,"column":31}},"loc":{"start":{"line":190,"column":34},"end":{"line":207,"column":5}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":212,"column":10},"end":{"line":212,"column":20}},"loc":{"start":{"line":212,"column":80},"end":{"line":233,"column":3}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":213,"column":27},"end":{"line":213,"column":31}},"loc":{"start":{"line":213,"column":34},"end":{"line":232,"column":5}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":235,"column":10},"end":{"line":235,"column":22}},"loc":{"start":{"line":235,"column":112},"end":{"line":257,"column":3}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":259,"column":10},"end":{"line":259,"column":18}},"loc":{"start":{"line":259,"column":72},"end":{"line":291,"column":3}}},"13":{"name":"(anonymous_13)","decl":{"start":{"line":261,"column":27},"end":{"line":261,"column":31}},"loc":{"start":{"line":261,"column":34},"end":{"line":288,"column":5}}},"14":{"name":"(anonymous_14)","decl":{"start":{"line":281,"column":90},"end":{"line":281,"column":91}},"loc":{"start":{"line":281,"column":95},"end":{"line":281,"column":96}}},"15":{"name":"(anonymous_15)","decl":{"start":{"line":293,"column":10},"end":{"line":293,"column":25}},"loc":{"start":{"line":293,"column":118},"end":{"line":317,"column":3}}},"16":{"name":"(anonymous_16)","decl":{"start":{"line":319,"column":10},"end":{"line":319,"column":25}},"loc":{"start":{"line":319,"column":63},"end":{"line":322,"column":3}}},"17":{"name":"(anonymous_17)","decl":{"start":{"line":320,"column":79},"end":{"line":320,"column":80}},"loc":{"start":{"line":320,"column":84},"end":{"line":320,"column":97}}},"18":{"name":"(anonymous_18)","decl":{"start":{"line":324,"column":10},"end":{"line":324,"column":20}},"loc":{"start":{"line":324,"column":37},"end":{"line":338,"column":3}}},"19":{"name":"(anonymous_19)","decl":{"start":{"line":340,"column":10},"end":{"line":340,"column":22}},"loc":{"start":{"line":340,"column":60},"end":{"line":346,"column":3}}},"20":{"name":"(anonymous_20)","decl":{"start":{"line":348,"column":10},"end":{"line":348,"column":26}},"loc":{"start":{"line":348,"column":43},"end":{"line":361,"column":3}}},"21":{"name":"(anonymous_21)","decl":{"start":{"line":363,"column":10},"end":{"line":363,"column":28}},"loc":{"start":{"line":363,"column":69},"end":{"line":365,"column":3}}},"22":{"name":"(anonymous_22)","decl":{"start":{"line":367,"column":10},"end":{"line":367,"column":20}},"loc":{"start":{"line":367,"column":32},"end":{"line":376,"column":3}}},"23":{"name":"supportedUnionOptionType","decl":{"start":{"line":379,"column":9},"end":{"line":379,"column":33}},"loc":{"start":{"line":379,"column":43},"end":{"line":381,"column":1}}},"24":{"name":"pascalCase","decl":{"start":{"line":383,"column":9},"end":{"line":383,"column":19}},"loc":{"start":{"line":383,"column":29},"end":{"line":385,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":62,"column":46},"end":{"line":62,"column":49}},"type":"default-arg","locations":[{"start":{"line":62,"column":46},"end":{"line":62,"column":49}}]},"1":{"loc":{"start":{"line":63,"column":34},"end":{"line":63,"column":38}},"type":"cond-expr","locations":[{"start":{"line":63,"column":34},"end":{"line":63,"column":38}},{"start":{"line":63,"column":38},"end":{"line":63,"column":40}}]},"2":{"loc":{"start":{"line":63,"column":16},"end":{"line":63,"column":38}},"type":"binary-expr","locations":[{"start":{"line":63,"column":16},"end":{"line":63,"column":38}},{"start":{"line":63,"column":34},"end":{"line":63,"column":38}}]},"3":{"loc":{"start":{"line":64,"column":42},"end":{"line":64,"column":46}},"type":"cond-expr","locations":[{"start":{"line":64,"column":42},"end":{"line":64,"column":46}},{"start":{"line":64,"column":46},"end":{"line":64,"column":49}}]},"4":{"loc":{"start":{"line":64,"column":20},"end":{"line":64,"column":46}},"type":"binary-expr","locations":[{"start":{"line":64,"column":20},"end":{"line":64,"column":46}},{"start":{"line":64,"column":42},"end":{"line":64,"column":46}}]},"5":{"loc":{"start":{"line":40,"column":6},"end":{"line":46,"column":null}},"type":"if","locations":[{"start":{"line":40,"column":6},"end":{"line":46,"column":null}},{"start":{"line":40,"column":6},"end":{"line":46,"column":null}}]},"6":{"loc":{"start":{"line":73,"column":73},"end":{"line":73,"column":81}},"type":"default-arg","locations":[{"start":{"line":73,"column":73},"end":{"line":73,"column":81}}]},"7":{"loc":{"start":{"line":76,"column":4},"end":{"line":78,"column":null}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":78,"column":null}},{"start":{"line":76,"column":4},"end":{"line":78,"column":null}}]},"8":{"loc":{"start":{"line":80,"column":4},"end":{"line":82,"column":null}},"type":"if","locations":[{"start":{"line":80,"column":4},"end":{"line":82,"column":null}},{"start":{"line":80,"column":4},"end":{"line":82,"column":null}}]},"9":{"loc":{"start":{"line":84,"column":4},"end":{"line":86,"column":null}},"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":86,"column":null}},{"start":{"line":84,"column":4},"end":{"line":86,"column":null}}]},"10":{"loc":{"start":{"line":88,"column":4},"end":{"line":90,"column":null}},"type":"if","locations":[{"start":{"line":88,"column":4},"end":{"line":90,"column":null}},{"start":{"line":88,"column":4},"end":{"line":90,"column":null}}]},"11":{"loc":{"start":{"line":93,"column":4},"end":{"line":99,"column":null}},"type":"if","locations":[{"start":{"line":93,"column":4},"end":{"line":99,"column":null}},{"start":{"line":93,"column":4},"end":{"line":99,"column":null}}]},"12":{"loc":{"start":{"line":93,"column":8},"end":{"line":93,"column":17}},"type":"binary-expr","locations":[{"start":{"line":93,"column":8},"end":{"line":93,"column":17}},{"start":{"line":93,"column":21},"end":{"line":93,"column":30}}]},"13":{"loc":{"start":{"line":94,"column":6},"end":{"line":96,"column":null}},"type":"if","locations":[{"start":{"line":94,"column":6},"end":{"line":96,"column":null}},{"start":{"line":94,"column":6},"end":{"line":96,"column":null}}]},"14":{"loc":{"start":{"line":101,"column":4},"end":{"line":103,"column":null}},"type":"if","locations":[{"start":{"line":101,"column":4},"end":{"line":103,"column":null}},{"start":{"line":101,"column":4},"end":{"line":103,"column":null}}]},"15":{"loc":{"start":{"line":101,"column":8},"end":{"line":101,"column":29}},"type":"binary-expr","locations":[{"start":{"line":101,"column":8},"end":{"line":101,"column":29}},{"start":{"line":101,"column":33},"end":{"line":101,"column":59}}]},"16":{"loc":{"start":{"line":106,"column":6},"end":{"line":106,"column":39}},"type":"switch","locations":[{"start":{"line":106,"column":6},"end":{"line":106,"column":39}},{"start":{"line":107,"column":6},"end":{"line":107,"column":67}},{"start":{"line":108,"column":6},"end":{"line":108,"column":31}},{"start":{"line":109,"column":6},"end":{"line":109,"column":32}}]},"17":{"loc":{"start":{"line":112,"column":4},"end":{"line":114,"column":null}},"type":"if","locations":[{"start":{"line":112,"column":4},"end":{"line":114,"column":null}},{"start":{"line":112,"column":4},"end":{"line":114,"column":null}}]},"18":{"loc":{"start":{"line":112,"column":8},"end":{"line":112,"column":29}},"type":"binary-expr","locations":[{"start":{"line":112,"column":8},"end":{"line":112,"column":29}},{"start":{"line":112,"column":33},"end":{"line":112,"column":55}}]},"19":{"loc":{"start":{"line":116,"column":4},"end":{"line":126,"column":null}},"type":"if","locations":[{"start":{"line":116,"column":4},"end":{"line":126,"column":null}},{"start":{"line":116,"column":4},"end":{"line":126,"column":null}}]},"20":{"loc":{"start":{"line":117,"column":6},"end":{"line":119,"column":null}},"type":"if","locations":[{"start":{"line":117,"column":6},"end":{"line":119,"column":null}},{"start":{"line":117,"column":6},"end":{"line":119,"column":null}}]},"21":{"loc":{"start":{"line":121,"column":6},"end":{"line":123,"column":null}},"type":"if","locations":[{"start":{"line":121,"column":6},"end":{"line":123,"column":null}},{"start":{"line":121,"column":6},"end":{"line":123,"column":null}}]},"22":{"loc":{"start":{"line":121,"column":10},"end":{"line":121,"column":33}},"type":"binary-expr","locations":[{"start":{"line":121,"column":10},"end":{"line":121,"column":33}},{"start":{"line":121,"column":37},"end":{"line":121,"column":56}},{"start":{"line":121,"column":60},"end":{"line":121,"column":103}}]},"23":{"loc":{"start":{"line":129,"column":4},"end":{"line":131,"column":null}},"type":"if","locations":[{"start":{"line":129,"column":4},"end":{"line":131,"column":null}},{"start":{"line":129,"column":4},"end":{"line":131,"column":null}}]},"24":{"loc":{"start":{"line":129,"column":8},"end":{"line":129,"column":23}},"type":"binary-expr","locations":[{"start":{"line":129,"column":8},"end":{"line":129,"column":23}},{"start":{"line":129,"column":27},"end":{"line":129,"column":51}},{"start":{"line":129,"column":55},"end":{"line":129,"column":100}}]},"25":{"loc":{"start":{"line":134,"column":4},"end":{"line":137,"column":null}},"type":"if","locations":[{"start":{"line":134,"column":4},"end":{"line":137,"column":null}},{"start":{"line":134,"column":4},"end":{"line":137,"column":null}}]},"26":{"loc":{"start":{"line":148,"column":4},"end":{"line":150,"column":null}},"type":"if","locations":[{"start":{"line":148,"column":4},"end":{"line":150,"column":null}},{"start":{"line":148,"column":4},"end":{"line":150,"column":null}}]},"27":{"loc":{"start":{"line":181,"column":25},"end":{"line":181,"column":34}},"type":"binary-expr","locations":[{"start":{"line":181,"column":25},"end":{"line":181,"column":34}},{"start":{"line":181,"column":38},"end":{"line":181,"column":47}},{"start":{"line":181,"column":51},"end":{"line":181,"column":53}}]},"28":{"loc":{"start":{"line":182,"column":6},"end":{"line":184,"column":null}},"type":"if","locations":[{"start":{"line":182,"column":6},"end":{"line":184,"column":null}},{"start":{"line":182,"column":6},"end":{"line":184,"column":null}}]},"29":{"loc":{"start":{"line":186,"column":47},"end":{"line":186,"column":55}},"type":"cond-expr","locations":[{"start":{"line":186,"column":47},"end":{"line":186,"column":55}},{"start":{"line":186,"column":58},"end":{"line":186,"column":69}}]},"30":{"loc":{"start":{"line":217,"column":58},"end":{"line":217,"column":78}},"type":"binary-expr","locations":[{"start":{"line":217,"column":58},"end":{"line":217,"column":78}},{"start":{"line":217,"column":82},"end":{"line":217,"column":84}}]},"31":{"loc":{"start":{"line":219,"column":8},"end":{"line":221,"column":null}},"type":"if","locations":[{"start":{"line":219,"column":8},"end":{"line":221,"column":null}},{"start":{"line":219,"column":8},"end":{"line":221,"column":null}}]},"32":{"loc":{"start":{"line":223,"column":8},"end":{"line":226,"column":null}},"type":"if","locations":[{"start":{"line":223,"column":8},"end":{"line":226,"column":null}},{"start":{"line":223,"column":8},"end":{"line":226,"column":null}}]},"33":{"loc":{"start":{"line":240,"column":4},"end":{"line":242,"column":null}},"type":"if","locations":[{"start":{"line":240,"column":4},"end":{"line":242,"column":null}},{"start":{"line":240,"column":4},"end":{"line":242,"column":null}}]},"34":{"loc":{"start":{"line":246,"column":4},"end":{"line":248,"column":null}},"type":"if","locations":[{"start":{"line":246,"column":4},"end":{"line":248,"column":null}},{"start":{"line":246,"column":4},"end":{"line":248,"column":null}}]},"35":{"loc":{"start":{"line":253,"column":32},"end":{"line":253,"column":34}},"type":"cond-expr","locations":[{"start":{"line":253,"column":32},"end":{"line":253,"column":34}},{"start":{"line":253,"column":37},"end":{"line":253,"column":40}}]},"36":{"loc":{"start":{"line":263,"column":6},"end":{"line":265,"column":null}},"type":"if","locations":[{"start":{"line":263,"column":6},"end":{"line":265,"column":null}},{"start":{"line":263,"column":6},"end":{"line":265,"column":null}}]},"37":{"loc":{"start":{"line":263,"column":10},"end":{"line":263,"column":19}},"type":"binary-expr","locations":[{"start":{"line":263,"column":10},"end":{"line":263,"column":19}},{"start":{"line":263,"column":23},"end":{"line":263,"column":44}}]},"38":{"loc":{"start":{"line":267,"column":6},"end":{"line":269,"column":null}},"type":"if","locations":[{"start":{"line":267,"column":6},"end":{"line":269,"column":null}},{"start":{"line":267,"column":6},"end":{"line":269,"column":null}}]},"39":{"loc":{"start":{"line":276,"column":8},"end":{"line":278,"column":null}},"type":"if","locations":[{"start":{"line":276,"column":8},"end":{"line":278,"column":null}},{"start":{"line":276,"column":8},"end":{"line":278,"column":null}}]},"40":{"loc":{"start":{"line":293,"column":115},"end":{"line":293,"column":118}},"type":"default-arg","locations":[{"start":{"line":293,"column":115},"end":{"line":293,"column":118}}]},"41":{"loc":{"start":{"line":296,"column":4},"end":{"line":308,"column":null}},"type":"if","locations":[{"start":{"line":296,"column":4},"end":{"line":308,"column":null}},{"start":{"line":296,"column":4},"end":{"line":308,"column":null}}]},"42":{"loc":{"start":{"line":300,"column":18},"end":{"line":300,"column":32}},"type":"binary-expr","locations":[{"start":{"line":300,"column":18},"end":{"line":300,"column":32}},{"start":{"line":300,"column":36},"end":{"line":300,"column":53}}]},"43":{"loc":{"start":{"line":303,"column":6},"end":{"line":305,"column":null}},"type":"if","locations":[{"start":{"line":303,"column":6},"end":{"line":305,"column":null}},{"start":{"line":303,"column":6},"end":{"line":305,"column":null}}]},"44":{"loc":{"start":{"line":326,"column":4},"end":{"line":328,"column":null}},"type":"if","locations":[{"start":{"line":326,"column":4},"end":{"line":328,"column":null}},{"start":{"line":326,"column":4},"end":{"line":328,"column":null}}]},"45":{"loc":{"start":{"line":326,"column":8},"end":{"line":326,"column":17}},"type":"binary-expr","locations":[{"start":{"line":326,"column":8},"end":{"line":326,"column":17}},{"start":{"line":326,"column":21},"end":{"line":326,"column":49}}]},"46":{"loc":{"start":{"line":330,"column":4},"end":{"line":332,"column":null}},"type":"if","locations":[{"start":{"line":330,"column":4},"end":{"line":332,"column":null}},{"start":{"line":330,"column":4},"end":{"line":332,"column":null}}]},"47":{"loc":{"start":{"line":341,"column":4},"end":{"line":343,"column":null}},"type":"if","locations":[{"start":{"line":341,"column":4},"end":{"line":343,"column":null}},{"start":{"line":341,"column":4},"end":{"line":343,"column":null}}]},"48":{"loc":{"start":{"line":341,"column":8},"end":{"line":341,"column":18}},"type":"binary-expr","locations":[{"start":{"line":341,"column":8},"end":{"line":341,"column":18}},{"start":{"line":341,"column":22},"end":{"line":341,"column":52}}]},"49":{"loc":{"start":{"line":350,"column":4},"end":{"line":352,"column":null}},"type":"if","locations":[{"start":{"line":350,"column":4},"end":{"line":352,"column":null}},{"start":{"line":350,"column":4},"end":{"line":352,"column":null}}]},"50":{"loc":{"start":{"line":350,"column":8},"end":{"line":350,"column":12}},"type":"binary-expr","locations":[{"start":{"line":350,"column":8},"end":{"line":350,"column":12}},{"start":{"line":350,"column":16},"end":{"line":350,"column":51}}]},"51":{"loc":{"start":{"line":356,"column":4},"end":{"line":358,"column":null}},"type":"if","locations":[{"start":{"line":356,"column":4},"end":{"line":358,"column":null}},{"start":{"line":356,"column":4},"end":{"line":358,"column":null}}]},"52":{"loc":{"start":{"line":364,"column":11},"end":{"line":364,"column":44}},"type":"binary-expr","locations":[{"start":{"line":364,"column":11},"end":{"line":364,"column":44}},{"start":{"line":364,"column":48},"end":{"line":364,"column":85}}]},"53":{"loc":{"start":{"line":370,"column":6},"end":{"line":372,"column":null}},"type":"if","locations":[{"start":{"line":370,"column":6},"end":{"line":372,"column":null}},{"start":{"line":370,"column":6},"end":{"line":372,"column":null}}]},"54":{"loc":{"start":{"line":380,"column":9},"end":{"line":380,"column":13}},"type":"binary-expr","locations":[{"start":{"line":380,"column":9},"end":{"line":380,"column":13}},{"start":{"line":380,"column":18},"end":{"line":380,"column":43}},{"start":{"line":380,"column":47},"end":{"line":380,"column":77}}]}},"s":{"0":4,"1":4,"2":4,"3":4,"4":4,"5":16,"6":16,"7":16,"8":16,"9":142,"10":142,"11":142,"12":152,"13":152,"14":10,"15":10,"16":10,"17":10,"18":10,"19":142,"20":74,"21":0,"22":74,"23":7,"24":74,"25":0,"26":74,"27":9,"28":65,"29":2,"30":1,"31":64,"32":1,"33":63,"34":4,"35":3,"36":1,"37":1,"38":54,"39":10,"40":44,"41":17,"42":0,"43":17,"44":7,"45":2,"46":15,"47":27,"48":1,"49":26,"50":25,"51":25,"52":1,"53":28,"54":0,"55":28,"56":15,"57":15,"58":15,"59":15,"60":25,"61":25,"62":25,"63":25,"64":25,"65":25,"66":2,"67":2,"68":3,"69":1,"70":2,"71":2,"72":1,"73":1,"74":1,"75":1,"76":2,"77":2,"78":2,"79":2,"80":1,"81":1,"82":1,"83":1,"84":1,"85":25,"86":22,"87":22,"88":22,"89":46,"90":0,"91":46,"92":0,"93":0,"94":46,"95":22,"96":46,"97":46,"98":0,"99":46,"100":0,"101":46,"102":46,"103":46,"104":46,"105":46,"106":46,"107":2,"108":2,"109":0,"110":2,"111":0,"112":2,"113":2,"114":2,"115":7,"116":0,"117":7,"118":16,"119":7,"120":7,"121":2,"122":2,"123":71,"124":71,"125":22,"126":22,"127":22,"128":22,"129":22,"130":5,"131":22,"132":71,"133":71,"134":76,"135":71,"136":50,"137":152,"138":50,"139":9,"140":9,"141":1,"142":8,"143":0,"144":8,"145":8,"146":8,"147":7,"148":3,"149":0,"150":3,"151":8,"152":8,"153":0,"154":8,"155":8,"156":8,"157":1,"158":7,"159":46,"160":82,"161":0,"162":0,"163":0,"164":82,"165":4,"166":3,"167":152},"f":{"0":16,"1":142,"2":74,"3":7,"4":28,"5":15,"6":15,"7":2,"8":1,"9":25,"10":22,"11":46,"12":2,"13":2,"14":16,"15":71,"16":50,"17":152,"18":9,"19":3,"20":8,"21":46,"22":82,"23":3,"24":152},"b":{"0":[12],"1":[0,16],"2":[16,16],"3":[4,12],"4":[16,16],"5":[10,142],"6":[4],"7":[0,74],"8":[7,67],"9":[0,74],"10":[9,65],"11":[2,63],"12":[65,63],"13":[1,1],"14":[1,63],"15":[64,18],"16":[4,3,1,1],"17":[10,44],"18":[54,51],"19":[17,27],"20":[0,17],"21":[2,15],"22":[17,2,2],"23":[1,26],"24":[27,2,1],"25":[25,1],"26":[0,28],"27":[2,0,0],"28":[1,2],"29":[0,2],"30":[22,0],"31":[0,46],"32":[0,46],"33":[0,46],"34":[0,46],"35":[10,36],"36":[0,2],"37":[2,2],"38":[0,2],"39":[0,7],"40":[71],"41":[22,49],"42":[22,5],"43":[5,17],"44":[1,8],"45":[9,9],"46":[0,8],"47":[0,3],"48":[3,3],"49":[0,8],"50":[8,8],"51":[1,7],"52":[46,16],"53":[0,0],"54":[3,2,2]}} | ||
} |
import { JSONSchema4 } from 'json-schema'; | ||
import { CodeMaker } from 'codemaker'; | ||
import { Code } from './code'; | ||
export interface TypeGeneratorOptions { | ||
@@ -21,2 +21,7 @@ /** | ||
export declare class TypeGenerator { | ||
/** | ||
* Convert all-caps acronyms (e.g. "VPC", "FooBARZooFIGoo") to pascal case | ||
* (e.g. "Vpc", "FooBarZooFiGoo"). | ||
*/ | ||
static normalizeTypeName(typeName: string): string; | ||
private readonly typesToEmit; | ||
@@ -38,9 +43,10 @@ private readonly emittedTypes; | ||
*/ | ||
emitType(typeName: string, def: JSONSchema4, structFqn?: string): string; | ||
addType(typeName: string, def: JSONSchema4, structFqn?: string): string; | ||
/** | ||
* Generates a file with all the types added to this generator. | ||
* | ||
* @param filePath The output file path, must have a ".ts" extension. | ||
* Emits code once to the output file. | ||
* @param uniqueid A unique identifier for the code snippet (e.g. the name of the type) | ||
* @param codeEmitter A function that will be called to emit the code. | ||
*/ | ||
writeToFile(filePath: string): Promise<void>; | ||
addCode(uniqueid: string, codeEmitter: (code: Code) => void): void; | ||
render(): string; | ||
/** | ||
@@ -51,4 +57,3 @@ * Writes all types to a `CodeMaker` with an open file. | ||
*/ | ||
writeToCodeMaker(code: CodeMaker): void; | ||
private emitLater; | ||
emitCode(code: Code): void; | ||
/** | ||
@@ -55,0 +60,0 @@ * @returns true if this definition can be represented as a union or false if it cannot |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.normalizeTypeName = exports.TypeGenerator = void 0; | ||
const codemaker_1 = require("codemaker"); | ||
const path = require("path"); | ||
exports.TypeGenerator = void 0; | ||
const code_1 = require("./code"); | ||
const camelCase = require("camelcase"); | ||
const snake_case_1 = require("snake-case"); | ||
const PRIMITIVE_TYPES = ['string', 'number', 'integer', 'boolean']; | ||
@@ -25,2 +26,23 @@ const DEFINITIONS_PREFIX = '#/definitions/'; | ||
/** | ||
* Convert all-caps acronyms (e.g. "VPC", "FooBARZooFIGoo") to pascal case | ||
* (e.g. "Vpc", "FooBarZooFiGoo"). | ||
*/ | ||
static normalizeTypeName(typeName) { | ||
// start with the full string and then use the regex to match all-caps sequences. | ||
const re = /([A-Z]+)(?:[^a-z]|$)/g; | ||
let result = typeName; | ||
let m; | ||
do { | ||
m = re.exec(typeName); | ||
if (m) { | ||
const before = result.slice(0, m.index); // all the text before the sequence | ||
const cap = m[1]; // group #1 matches the all-caps sequence we are after | ||
const pascal = cap[0] + cap.slice(1).toLowerCase(); // convert to pascal case by lowercasing all but the first char | ||
const after = result.slice(m.index + pascal.length); // all the text after the sequence | ||
result = before + pascal + after; // concat | ||
} | ||
} while (m); | ||
return result; | ||
} | ||
/** | ||
* Emit a type based on a JSON schema. | ||
@@ -31,6 +53,6 @@ * @param typeName The name of th type | ||
*/ | ||
emitType(typeName, def, structFqn = typeName) { | ||
addType(typeName, def, structFqn = typeName) { | ||
// callers expect that emit a type named `typeName` so we can't change it here | ||
// but at least we can verify it's correct. | ||
if (normalizeTypeName(typeName) !== typeName) { | ||
if (TypeGenerator.normalizeTypeName(typeName) !== typeName) { | ||
throw new Error(`${typeName} must be normalized before calling emitType`); | ||
@@ -87,17 +109,17 @@ } | ||
/** | ||
* Generates a file with all the types added to this generator. | ||
* | ||
* @param filePath The output file path, must have a ".ts" extension. | ||
* Emits code once to the output file. | ||
* @param uniqueid A unique identifier for the code snippet (e.g. the name of the type) | ||
* @param codeEmitter A function that will be called to emit the code. | ||
*/ | ||
async writeToFile(filePath) { | ||
if (path.extname(filePath) !== '.ts') { | ||
throw new Error('file must have a .ts extension'); | ||
addCode(uniqueid, codeEmitter) { | ||
if (this.emittedTypes.has(uniqueid)) { | ||
return; | ||
} | ||
const code = new codemaker_1.CodeMaker(); | ||
const filename = path.basename(filePath); | ||
code.openFile(filename); | ||
this.writeToCodeMaker(code); | ||
code.closeFile(filename); | ||
await code.save(path.dirname(filePath)); | ||
this.typesToEmit[uniqueid] = codeEmitter; | ||
} | ||
render() { | ||
const code = new code_1.Code(); | ||
this.emitCode(code); | ||
return code.render(); | ||
} | ||
/** | ||
@@ -108,3 +130,3 @@ * Writes all types to a `CodeMaker` with an open file. | ||
*/ | ||
writeToCodeMaker(code) { | ||
emitCode(code) { | ||
while (Object.keys(this.typesToEmit).length) { | ||
@@ -119,8 +141,2 @@ const name = Object.keys(this.typesToEmit)[0]; | ||
} | ||
emitLater(typeName, codeEmitter) { | ||
if (this.emittedTypes.has(typeName)) { | ||
return; | ||
} | ||
this.typesToEmit[typeName] = codeEmitter; | ||
} | ||
/** | ||
@@ -138,3 +154,3 @@ * @returns true if this definition can be represented as a union or false if it cannot | ||
} | ||
this.emitLater(typeName, code => { | ||
this.addCode(typeName, code => { | ||
this.emitDescription(code, fqn, def.description); | ||
@@ -156,3 +172,3 @@ code.openBlock(`export class ${typeName}`); | ||
emitStruct(typeName, structDef, structFqn) { | ||
this.emitLater(typeName, code => { | ||
this.addCode(typeName, code => { | ||
this.emitDescription(code, structFqn, structDef.description); | ||
@@ -178,3 +194,3 @@ code.openBlock(`export interface ${typeName}`); | ||
if (name[0] === name[0].toUpperCase()) { | ||
name = code.toCamelCase(name); | ||
name = camelCase(name); | ||
} | ||
@@ -194,3 +210,3 @@ // if the name starts with '$' (like $ref or $schema), we remove the "$" | ||
emitEnum(typeName, def, structFqn) { | ||
this.emitLater(typeName, code => { | ||
this.addCode(typeName, code => { | ||
if (!def.enum || def.enum.length === 0) { | ||
@@ -209,3 +225,3 @@ throw new Error(`definition is not an enum: ${JSON.stringify(def)}`); | ||
// sluggify and turn to UPPER_SNAKE_CASE | ||
const memberName = code.toSnakeCase(value.replace(/[^a-z0-9]/gi, '_')).split('_').filter(x => x).join('_').toUpperCase(); | ||
const memberName = snake_case_1.snakeCase(value.replace(/[^a-z0-9]/gi, '_')).split('_').filter(x => x).join('_').toUpperCase(); | ||
code.line(`/** ${value} */`); | ||
@@ -237,4 +253,4 @@ code.line(`${memberName} = "${value}",`); | ||
typeForProperty(propertyFqn, def) { | ||
const subtype = normalizeTypeName(propertyFqn.split('.').map(x => codemaker_1.toPascalCase(x)).join('')); | ||
return this.emitType(subtype, def, subtype); | ||
const subtype = TypeGenerator.normalizeTypeName(propertyFqn.split('.').map(x => pascalCase(x)).join('')); | ||
return this.addType(subtype, def, subtype); | ||
} | ||
@@ -250,5 +266,5 @@ typeForRef(def) { | ||
const comps = def.$ref.substring(prefix.length).split('.'); | ||
const typeName = normalizeTypeName(comps[comps.length - 1]); | ||
const typeName = TypeGenerator.normalizeTypeName(comps[comps.length - 1]); | ||
const schema = this.resolveReference(def); | ||
return this.emitType(typeName, schema, def.$ref); | ||
return this.addType(typeName, schema, def.$ref); | ||
} | ||
@@ -287,28 +303,8 @@ typeForArray(propertyFqn, def) { | ||
exports.TypeGenerator = TypeGenerator; | ||
/** | ||
* Convert all-caps acronyms (e.g. "VPC", "FooBARZooFIGoo") to pascal case (e.g. "Vpc", "FooBarZooFiGoo"). | ||
* | ||
* @internal exported for tests | ||
*/ | ||
function normalizeTypeName(typeName) { | ||
// start with the full string and then use the regex to match all-caps sequences. | ||
const re = /([A-Z]+)(?:[^a-z]|$)/g; | ||
let result = typeName; | ||
let m; | ||
do { | ||
m = re.exec(typeName); | ||
if (m) { | ||
const before = result.slice(0, m.index); // all the text before the sequence | ||
const cap = m[1]; // group #1 matches the all-caps sequence we are after | ||
const pascal = cap[0] + cap.slice(1).toLowerCase(); // convert to pascal case by lowercasing all but the first char | ||
const after = result.slice(m.index + pascal.length); // all the text after the sequence | ||
result = before + pascal + after; // concat | ||
} | ||
} while (m); | ||
return result; | ||
} | ||
exports.normalizeTypeName = normalizeTypeName; | ||
function supportedUnionOptionType(type) { | ||
return type && (typeof (type) === 'string' && PRIMITIVE_TYPES.includes(type)); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS1nZW5lcmF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlLWdlbmVyYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx5Q0FBb0Q7QUFDcEQsNkJBQTZCO0FBRTdCLE1BQU0sZUFBZSxHQUFHLENBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxTQUFTLEVBQUUsU0FBUyxDQUFFLENBQUM7QUFDckUsTUFBTSxrQkFBa0IsR0FBRyxnQkFBZ0IsQ0FBQztBQWdCNUM7O0dBRUc7QUFDSCxNQUFhLGFBQWE7SUFNeEI7Ozs7T0FJRztJQUNILFlBQVksVUFBZ0MsRUFBRzs7UUFWOUIsZ0JBQVcsR0FBa0QsRUFBRyxDQUFDO1FBQ2pFLGlCQUFZLEdBQUcsSUFBSSxHQUFHLEVBQVUsQ0FBQztRQVVoRCxJQUFJLENBQUMsT0FBTyxTQUFHLE9BQU8sQ0FBQyxPQUFPLG1DQUFJLEVBQUUsQ0FBQztRQUNyQyxJQUFJLENBQUMsV0FBVyxTQUFHLE9BQU8sQ0FBQyxXQUFXLG1DQUFJLEVBQUcsQ0FBQztJQUNoRCxDQUFDO0lBRUQ7Ozs7O09BS0c7SUFDSSxRQUFRLENBQUMsUUFBZ0IsRUFBRSxHQUFnQixFQUFFLFlBQW9CLFFBQVE7UUFDOUUsOEVBQThFO1FBQzlFLDJDQUEyQztRQUMzQyxJQUFJLGlCQUFpQixDQUFDLFFBQVEsQ0FBQyxLQUFLLFFBQVEsRUFBRTtZQUM1QyxNQUFNLElBQUksS0FBSyxDQUFDLEdBQUcsUUFBUSw2Q0FBNkMsQ0FBQyxDQUFDO1NBQzNFO1FBRUQsSU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UoMSkudG9Mb3dlckNhc2UoKTsgLy8gY29udmVydCB0byBwYXNjYWwgY2FzZSBieSBsb3dlcmNhc2luZyBhbGwgYnV0IHRoZSBmaXJzdCBjaGFyXG4gICAgICBjb25zdCBhZnRlciA9IHJlc3VsdC5zbGljZShtLmluZGV4ICsgcGFzY2FsLmxlbmd0aCk7IC8vIGFsbCB0aGUgdGV4dCBhZnRlciB0aGUgc2VxdWVuY2VcbiAgICAgIHJlc3VsdCA9IGJlZm9yZSArIHBhc2NhbCArIGFmdGVyOyAvLyBjb25jYXRcbiAgICB9XG4gIH0gd2hpbGUgKG0pO1xuXG4gIHJldHVybiByZXN1bHQ7XG59XG5cbmZ1bmN0aW9uIHN1cHBvcnRlZFVuaW9uT3B0aW9uVHlwZSh0eXBlOiBhbnkpOiB0eXBlIGlzIHN0cmluZyB7XG4gIHJldHVybiB0eXBlICYmICh0eXBlb2YodHlwZSkgPT09ICdzdHJpbmcnICYmIFBSSU1JVElWRV9UWVBFUy5pbmNsdWRlcyh0eXBlKSk7XG59XG4iXX0= | ||
function pascalCase(s) { | ||
return camelCase(s, { pascalCase: true }); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS1nZW5lcmF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlLWdlbmVyYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxpQ0FBOEI7QUFFOUIsdUNBQXVDO0FBQ3ZDLDJDQUF1QztBQUV2QyxNQUFNLGVBQWUsR0FBRyxDQUFFLFFBQVEsRUFBRSxRQUFRLEVBQUUsU0FBUyxFQUFFLFNBQVMsQ0FBRSxDQUFDO0FBQ3JFLE1BQU0sa0JBQWtCLEdBQUcsZ0JBQWdCLENBQUM7QUFnQjVDOztHQUVHO0FBQ0gsTUFBYSxhQUFhO0lBOEJ4Qjs7OztPQUlHO0lBQ0gsWUFBWSxVQUF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B7XG4gICAgcmV0dXJuIEFycmF5LmlzQXJyYXkoc3RydWN0RGVmLnJlcXVpcmVkKSAmJiBzdHJ1Y3REZWYucmVxdWlyZWQuaW5jbHVkZXMocHJvcGVydHkpO1xuICB9XG5cbiAgcHJpdmF0ZSBpc0V4Y2x1ZGVkKGZxbjogc3RyaW5nKSB7XG4gICAgZm9yIChjb25zdCBwYXR0ZXJuIG9mIHRoaXMuZXhjbHVkZSkge1xuICAgICAgY29uc3QgcmUgPSBuZXcgUmVnRXhwKHBhdHRlcm4pO1xuICAgICAgaWYgKHJlLnRlc3QoZnFuKSkge1xuICAgICAgICByZXR1cm4gdHJ1ZTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cblxuZnVuY3Rpb24gc3VwcG9ydGVkVW5pb25PcHRpb25UeXBlKHR5cGU6IGFueSk6IHR5cGUgaXMgc3RyaW5nIHtcbiAgcmV0dXJuIHR5cGUgJiYgKHR5cGVvZih0eXBlKSA9PT0gJ3N0cmluZycgJiYgUFJJTUlUSVZFX1RZUEVTLmluY2x1ZGVzKHR5cGUpKTtcbn1cblxuZnVuY3Rpb24gcGFzY2FsQ2FzZShzOiBzdHJpbmcpOiBzdHJpbmcge1xuICByZXR1cm4gY2FtZWxDYXNlKHMsIHsgcGFzY2FsQ2FzZTogdHJ1ZSB9KTtcbn0iXX0= |
@@ -47,3 +47,4 @@ { | ||
"json-schema": "^0.2.5", | ||
"codemaker": "^1.6.0" | ||
"camelcase": "^6.0.0", | ||
"snake-case": "^3.0.3" | ||
}, | ||
@@ -55,3 +56,3 @@ "bundledDependencies": [], | ||
"license": "Apache-2.0", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"jest": { | ||
@@ -58,0 +59,0 @@ "clearMocks": true, |
@@ -27,3 +27,3 @@ # json2jsii | ||
g.emitType('Person', { | ||
g.addType('Person', { | ||
required: [ 'name' ], | ||
@@ -42,3 +42,3 @@ properties: { | ||
await g.writeToFile('gen/ts/person.ts'); | ||
fs.writeFileSync('gen/ts/person.ts', await g.render()); | ||
``` | ||
@@ -45,0 +45,0 @@ |
@@ -11,3 +11,3 @@ "use strict"; | ||
const g = new lib_1.TypeGenerator(); | ||
g.emitType('Name', { | ||
g.addType('Name', { | ||
properties: { | ||
@@ -21,5 +21,6 @@ first: { type: 'string' }, | ||
const workdir = fs.mkdtempSync(path.join(os.tmpdir(), 'json2jsii')); | ||
await g.writeToFile(path.join(workdir, 'typescript', 'index.ts')); | ||
fs.mkdirSync(path.join(workdir, 'java')); | ||
await jsii_srcmak_1.srcmak(path.join(workdir, 'typescript'), { | ||
const src = path.join(workdir, 'tyepscript'); | ||
fs.mkdirSync(src); | ||
fs.writeFileSync(path.join(src, 'index.ts'), await g.render()); | ||
await jsii_srcmak_1.srcmak(src, { | ||
java: { | ||
@@ -42,2 +43,2 @@ outdir: path.join(workdir, 'java'), | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmluZGluZ3MudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImJpbmRpbmdzLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnQ0FBdUM7QUFDdkMsNkNBQXFDO0FBQ3JDLHlCQUF5QjtBQUN6Qix5QkFBeUI7QUFDekIsNkJBQTZCO0FBRTdCLElBQUksQ0FBQyxVQUFVLENBQUMsQ0FBQyxHQUFHLEVBQUUsR0FBRyxJQUFJLENBQUMsQ0FBQztBQUUvQixJQUFJLENBQUMsbUJBQW1CLEVBQUUsS0FBSyxJQUFJLEVBQUU7SUFDbkMsTUFBTSxDQUFDLEdBQUcsSUFBSSxtQkFBYSxFQUFFLENBQUM7SUFFOUIsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxNQUFNLEVBQUU7UUFDakIsVUFBVSxFQUFFO1lBQ1YsS0FBSyxFQUFFLEVBQUUsSUFBSSxFQUF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C5hbm5vdGF0aW9uLkdlbmVyYXRlZCcgXSkpLnRvTWF0Y2hTbmFwc2hvdCgpO1xufSk7XG5cbmZ1bmN0aW9uIHJlYWRGaWxlKGZpbGVQYXRoOiBzdHJpbmcsIGlnbm9yZUxpbmVzOiBzdHJpbmdbXSA9IFtdKSB7XG4gIGNvbnN0IGxpbmVzID0gKGZzLnJlYWRGaWxlU3luYyhmaWxlUGF0aCwgJ3V0Zi04JykpLnNwbGl0KCdcXG4nKTtcbiAgY29uc3Qgc2hvdWxkSW5jbHVkZSA9IChsaW5lOiBzdHJpbmcpID0+ICFpZ25vcmVMaW5lcy5maW5kKHBhdHRlcm4gPT4gbGluZS5pbmNsdWRlcyhwYXR0ZXJuKSk7XG4gIHJldHVybiBsaW5lcy5maWx0ZXIoc2hvdWxkSW5jbHVkZSkuam9pbignXFxuJyk7XG59Il19 |
@@ -6,16 +6,16 @@ "use strict"; | ||
test('no normalization needed', () => { | ||
expect(lib_1.normalizeTypeName('Foo')).toEqual('Foo'); | ||
expect(lib_1.normalizeTypeName('FooBar')).toEqual('FooBar'); | ||
expect(lib_1.normalizeTypeName('Implement')).toEqual('Implement'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('Foo')).toEqual('Foo'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('FooBar')).toEqual('FooBar'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('Implement')).toEqual('Implement'); | ||
}); | ||
test('TLAs are converted to PascalCase', () => { | ||
expect(lib_1.normalizeTypeName('ICQResource')).toEqual('IcqResource'); | ||
expect(lib_1.normalizeTypeName('IXXXFoo')).toEqual('IxxxFoo'); | ||
expect(lib_1.normalizeTypeName('IXXFoo')).toEqual('IxxFoo'); | ||
expect(lib_1.normalizeTypeName('STARTFooBARZingSOCalEND')).toEqual('StartFooBarZingSoCalEnd'); | ||
expect(lib_1.normalizeTypeName('VPC')).toEqual('Vpc'); | ||
expect(lib_1.normalizeTypeName('StorageIO')).toEqual('StorageIo'); | ||
expect(lib_1.normalizeTypeName('AFoo')).toEqual('AFoo'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('ICQResource')).toEqual('IcqResource'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('IXXXFoo')).toEqual('IxxxFoo'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('IXXFoo')).toEqual('IxxFoo'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('STARTFooBARZingSOCalEND')).toEqual('StartFooBarZingSoCalEnd'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('VPC')).toEqual('Vpc'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('StorageIO')).toEqual('StorageIo'); | ||
expect(lib_1.TypeGenerator.normalizeTypeName('AFoo')).toEqual('AFoo'); | ||
}); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS1nZW5lcmF0b3IubmFtaW5nLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlLWdlbmVyYXRvci5uYW1pbmcudGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGdDQUEyQztBQUUzQyxRQUFRLENBQUMsbUJBQW1CLEVBQUUsR0FBRyxFQUFFO0lBQ2pDLElBQUksQ0FBQyx5QkFBeUIsRUFBRSxHQUFHLEVBQUU7UUFDbkMsTUFBTSxDQUFDLHVCQUFpQixDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ2hELE1BQU0sQ0FBQyx1QkFBaUIsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztRQUN0RCxNQUFNLENBQUMsdUJBQWlCLENBQUMsV0FBVyxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7SUFDOUQsQ0FBQyxDQUFD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pO1xuICAgIGV4cGVjdChUeXBlR2VuZXJhdG9yLm5vcm1hbGl6ZVR5cGVOYW1lKCdJWFhYRm9vJykpLnRvRXF1YWwoJ0l4eHhGb28nKTtcbiAgICBleHBlY3QoVHlwZUdlbmVyYXRvci5ub3JtYWxpemVUeXBlTmFtZSgnSVhYRm9vJykpLnRvRXF1YWwoJ0l4eEZvbycpO1xuICAgIGV4cGVjdChUeXBlR2VuZXJhdG9yLm5vcm1hbGl6ZVR5cGVOYW1lKCdTVEFSVEZvb0JBUlppbmdTT0NhbEVORCcpKS50b0VxdWFsKCdTdGFydEZvb0JhclppbmdTb0NhbEVuZCcpO1xuICAgIGV4cGVjdChUeXBlR2VuZXJhdG9yLm5vcm1hbGl6ZVR5cGVOYW1lKCdWUEMnKSkudG9FcXVhbCgnVnBjJyk7XG4gICAgZXhwZWN0KFR5cGVHZW5lcmF0b3Iubm9ybWFsaXplVHlwZU5hbWUoJ1N0b3JhZ2VJTycpKS50b0VxdWFsKCdTdG9yYWdlSW8nKTtcbiAgICBleHBlY3QoVHlwZUdlbmVyYXRvci5ub3JtYWxpemVUeXBlTmFtZSgnQUZvbycpKS50b0VxdWFsKCdBRm9vJyk7XG4gIH0pO1xufSk7Il19 |
@@ -7,3 +7,2 @@ "use strict"; | ||
const os = require("os"); | ||
const codemaker_1 = require("codemaker"); | ||
const jsii_srcmak_1 = require("jsii-srcmak"); | ||
@@ -253,19 +252,14 @@ jest.setTimeout(3 * 60000); // 1min | ||
const gen = new lib_1.TypeGenerator(definitions); | ||
gen.emitType('TestType', schema, 'fqn.of.TestType'); | ||
await mkdtemp(async (workdir) => { | ||
expect(await generate(workdir, gen)).toMatchSnapshot(); | ||
}); | ||
gen.addType('TestType', schema, 'fqn.of.TestType'); | ||
expect(await generate(gen)).toMatchSnapshot(); | ||
}); | ||
} | ||
async function generate(workdir, gen) { | ||
const code = new codemaker_1.CodeMaker(); | ||
const entrypoint = 'index.ts'; | ||
code.openFile(entrypoint); | ||
gen.writeToCodeMaker(code); | ||
code.closeFile(entrypoint); | ||
await code.save(workdir); | ||
const source = await fs_1.promises.readFile(path.join(workdir, entrypoint), 'utf-8'); | ||
async function generate(gen) { | ||
const source = await gen.render(); | ||
const deps = ['@types/node'].map(d => path.dirname(require.resolve(`${d}/package.json`))); | ||
// check that the output compiles & is jsii-compatible | ||
await jsii_srcmak_1.srcmak(workdir, { deps }); | ||
await mkdtemp(async (workdir) => { | ||
await fs_1.promises.writeFile(path.join(workdir, 'index.ts'), source); | ||
await jsii_srcmak_1.srcmak(workdir, { deps }); | ||
}); | ||
return source; | ||
@@ -277,2 +271,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS1nZW5lcmF0b3IudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInR5cGUtZ2VuZXJhdG9yLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnQ0FBdUM7QUFDdkMsMkJBQW9DO0FBQ3BDLDZCQUE2QjtBQUM3Qix5QkFBeUI7QUFDekIseUNBQXNDO0FBRXRDLDZDQUFxQztBQUVyQyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUMsR0FBRyxLQUFNLENBQUMsQ0FBQyxDQUFDLE9BQU87QUFFcEMsUUFBUSxDQUFDLFFBQVEsRUFBRSxHQUFHLEVBQUU7SUFFdEIsS0FBSyxDQUFDLG9CQUFvQixFQUFFO1FBQzFCLEtBQUssRUFBRTtZQUNMLEVBQUUsSUFBSSxFQUFFLFFBQVEsRUFBRTtZQUNsQixFQUFFLElBQUksRUFBRSxRQUFRLEVBQUU7U0FDbkI7S0FDRixDQUFDLENBQUM7SUFFSCxLQUFLLENBQUMscUNBQXFDLEVBQUU7UUFDM0MsYUFBYSxFQUFFLGtEQUFrRDtRQUNqRSxNQUFNLEVBQUUsT0FBTztRQUNmLE9BQU8sRUFBRTtZQUNQLE1BQU0s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ZpYyBhdFxcbnRoZSBjbGllbnQgc2lkZS4nLFxuICAgICAgICAgICdwcm9wZXJ0aWVzJzoge1xuICAgICAgICAgICAgJ2RlbGF5Jzoge1xuICAgICAgICAgICAgICAnb25lT2YnOiBbXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgJ2FueU9mJzogW1xuICAgICAgICAgICAgICAgICAgICB7ICdyZXF1aXJlZCc6IFsgJ2ZpeGVkRGVsYXknIF0gfSxcbiAgICAgICAgICAgICAgICAgICAgeyAncmVxdWlyZWQnOiBbICdleHBvbmVudGlhbERlbGF5JyBdIH0sXG4gICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgeyAncmVxdWlyZWQnOiBbICdmaXhlZERlbGF5JyBdIH0sXG4gICAgICAgICAgICAgICAgeyAncmVxdWlyZWQnOiBbICdleHBvbmVudGlhbERlbGF5JyBdIH0sXG4gICAgICAgICAgICAgIF0sXG4gICAgICAgICAgICAgICdwcm9wZXJ0aWVzJzoge1xuICAgICAgICAgICAgICAgICdleHBvbmVudGlhbERlbGF5Jzoge1xuICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICdmaXhlZERlbGF5Jzoge1xuICAgICAgICAgICAgICAgICAgJ2Rlc2NyaXB0aW9uJzogJ0FkZCBhIGZpeGVkIGRlbGF5IGJlZm9yZSBmb3J3YXJkaW5nIHRoZSByZXF1ZXN0LicsXG4gICAgICAgICAgICAgICAgICAndHlwZSc6ICdzdHJpbmcnLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgJ3BlcmNlbnQnOiB7XG4gICAgICAgICAgICAgICAgICAnZGVzY3JpcHRpb24nOiAnUGVyY2VudGFnZSBvZiByZXF1ZXN0cyBvbiB3aGljaCB0aGUgZGVsYXlcXG53aWxsIGJlIGluamVjdGVkICgwLTEwMCkuJyxcbiAgICAgICAgICAgICAgICAgICdmb3JtYXQnOiAnaW50MzInLFxuICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAnaW50ZWdlcicsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAncGVyY2VudGFnZSc6IHtcbiAgICAgICAgICAgICAgICAgICdkZXNjcmlwdGlvbic6ICdQZXJjZW50YWdlIG9mIHJlcXVlc3RzIG9uIHdoaWNoIHRoZSBkZWxheVxcbndpbGwgYmUgaW5qZWN0ZWQuJyxcbiAgICAgICAgICAgICAgICAgICdwcm9wZXJ0aWVzJzoge1xuICAgICAgICAgICAgICAgICAgICAndmFsdWUnOiB7XG4gICAgICAgICAgICAgICAgICAgICAgJ2Zvcm1hdCc6ICdkb3VibGUnLFxuICAgICAgICAgICAgICAgICAgICAgICd0eXBlJzogJ251bWJlcicsXG4gICAgICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAnb2JqZWN0JyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAndHlwZSc6ICdvYmplY3QnLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICB9LFxuICB9KTtcblxufSk7XG5cblxuZGVzY3JpYmUoJ3N0cnVjdHMnLCAoKSA9PiB7XG5cbiAgd2hpY2goJ2hhcyBwcmltaXRpdmUgdHlwZXMgYW5kIGNvbGxlY3Rpb25zIG9mIHByaW1pdGl2ZSB0eXBlcycsIHtcbiAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICBzdHJpbmdWYWx1ZTogeyB0eXBlOiAnc3RyaW5nJyB9LFxuICAgICAgYm9vbFZhbHVlOiB7IHR5cGU6ICdib29sZWFuJyB9LFxuICAgICAgbnVtYmVyVmFsdWU6IHsgdHlwZTogJ251bWJlcicgfSxcbiAgICAgIGludGVnZXJWYWx1ZToge3R5cGU6ICdpbnRlZ2VyJyB9LFxuICAgICAgYXJyYXlPZlN0cmluZzoge1xuICAgICAgICB0eXBlOiAnYXJyYXknLFxuICAgICAgICBpdGVtczogeyB0eXBlOiAnc3RyaW5nJyB9LFxuICAgICAgfSxcbiAgICB9LFxuICB9KTtcblxuICB3aGljaCgnaGFzIGEgZmllbGQgdGhhdCByZWZlcmVuY2VzIGFub3RoZXIgc3RydWN0ICh3aXRoIHJlcXVpcmVkIGZpZWxkcyknLCB7XG4gICAgdHlwZTogJ29iamVjdCcsXG4gICAgcHJvcGVydGllczoge1xuICAgICAgb3RoZXI6IHtcbiAgICAgICAgJHJlZjogJyMvZGVmaW5pdGlvbnMvT3RoZXInLFxuICAgICAgfSxcbiAgICB9LFxuICB9LCB7XG4gICAgZGVmaW5pdGlvbnM6IHtcbiAgICAgIE90aGVyOiB7XG4gICAgICAgIHR5cGU6ICdvYmplY3QnLFxuICAgICAgICBwcm9wZXJ0aWVzOiB7XG4gICAgICAgICAgc3RyaW5nVmFsdWU6IHsgdHlwZTogJ3N0cmluZycgfSxcbiAgICAgICAgfSxcbiAgICAgICAgcmVxdWlyZWQ6IFsgJ3N0cmluZ1ZhbHVlJyBdLFxuICAgICAgfSxcbiAgICB9LFxuICB9KTtcblxuICB3aGljaCgncmVmZXJlbmNlcyBpdHNlbGYnLCB7XG4gICAgdHlwZTogJ29iamVjdCcsXG4gICAgcHJvcGVydGllczoge1xuICAgICAgZW50cnlwb2ludDoge1xuICAgICAgICAkcmVmOiAnIy9kZWZpbml0aW9ucy9NeVR5cGUnLFxuICAgICAgfSxcbiAgICB9LFxuICB9LCB7XG4gICAgZGVmaW5pdGlvbnM6IHtcbiAgICAgIE15VHlwZToge1xuICAgICAgICB0eXBlOiAnb2JqZWN0JyxcbiAgICAgICAgcHJvcGVydGllczoge1xuICAgICAgICAgIHNlbGY6IHsgJHJlZjogJyMvZGVmaW5pdGlvbnMvT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luY2x1ZGUgcHJpbWl0aXZlcycsIHtcbiAgICBvbmVPZjogW1xuICAgICAgeyB0eXBlOiAnc3RyaW5nJyB9LFxuICAgICAgeyB0eXBlOiAnbnVtYmVyJyB9LFxuICAgIF0sXG4gIH0pO1xuXG4gIHdoaWNoKCdjb25zdHJhaW50cyBhcmUgaWdub3JlZCBmb3Igb2JqZWN0cycsIHtcbiAgICAnZGVzY3JpcHRpb24nOiAnQW4gb3JkZXJlZCBsaXN0IG9mIHJvdXRlIHJ1bGVzIGZvciBIVFRQIHRyYWZmaWMuJyxcbiAgICAndHlwZSc6ICdhcnJheScsXG4gICAgJ2l0ZW1zJzoge1xuICAgICAgJ3R5cGUnOiAnb2JqZWN0JyxcbiAgICAgICdwcm9wZXJ0aWVzJzoge1xuICAgICAgICAnZmF1bHQnOiB7XG4gICAgICAgICAgJ3R5cGUnOiAnb2JqZWN0JyxcbiAgICAgICAgICAnZGVzY3JpcHRpb24nOiAnRmF1bHQgaW5qZWN0aW9uIHBvbGljeSB0byBhcHBseSBvbiBIVFRQIHRyYWZmaWMgYXRcXG50aGUgY2xpZW50IHNpZGUuJyxcbiAgICAgICAgICAncHJvcGVydGllcyc6IHtcbiAgICAgICAgICAgICdkZWxheSc6IHtcbiAgICAgICAgICAgICAgJ29uZU9mJzogW1xuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgICdhbnlPZic6IFtcbiAgICAgICAgICAgICAgICAgICAgeyAncmVxdWlyZWQnOiBbICdmaXhlZERlbGF5JyBdIH0sXG4gICAgICAgICAgICAgICAgICAgIHsgJ3JlcXVpcmVkJzogWyAnZXhwb25lbnRpYWxEZWxheScgXSB9LFxuICAgICAgICAgICAgICAgICAgXSxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgIHsgJ3JlcXVpcmVkJzogWyAnZml4ZWREZWxheScgXSB9LFxuICAgICAgICAgICAgICAgIHsgJ3JlcXVpcmVkJzogWyAnZXhwb25lbnRpYWxEZWxheScgXSB9LFxuICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAncHJvcGVydGllcyc6IHtcbiAgICAgICAgICAgICAgICAnZXhwb25lbnRpYWxEZWxheSc6IHtcbiAgICAgICAgICAgICAgICAgICd0eXBlJzogJ3N0cmluZycsXG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICAnZml4ZWREZWxheSc6IHtcbiAgICAgICAgICAgICAgICAgICdkZXNjcmlwdGlvbic6ICdBZGQgYSBmaXhlZCBkZWxheSBiZWZvcmUgZm9yd2FyZGluZyB0aGUgcmVxdWVzdC4nLFxuICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAgICdwZXJjZW50Jzoge1xuICAgICAgICAgICAgICAgICAgJ2Rlc2NyaXB0aW9uJzogJ1BlcmNlbnRhZ2Ugb2YgcmVxdWVzdHMgb24gd2hpY2ggdGhlIGRlbGF5XFxud2lsbCBiZSBpbmplY3RlZCAoMC0xMDApLicsXG4gICAgICAgICAgICAgICAgICAnZm9ybWF0JzogJ2ludDMyJyxcbiAgICAgICAgICAgICAgICAgICd0eXBlJzogJ2ludGVnZXInLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgICAgJ3BlcmNlbnRhZ2UnOiB7XG4gICAgICAgICAgICAgICAgICAnZGVzY3JpcHRpb24nOiAnUGVyY2VudGFnZSBvZiByZXF1ZXN0cyBvbiB3aGljaCB0aGUgZGVsYXlcXG53aWxsIGJlIGluamVjdGVkLicsXG4gICAgICAgICAgICAgICAgICAncHJvcGVydGllcyc6IHtcbiAgICAgICAgICAgICAgICAgICAgJ3ZhbHVlJzoge1xuICAgICAgICAgICAgICAgICAgICAgICdmb3JtYXQnOiAnZG91YmxlJyxcbiAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6ICdudW1iZXInLFxuICAgICAgICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICAg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LnJlc29sdmUoYCR7ZH0vcGFja2FnZS5qc29uYCkpKTtcblxuICAvLyBjaGVjayB0aGF0IHRoZSBvdXRwdXQgY29tcGlsZXMgJiBpcyBqc2lpLWNvbXBhdGlibGVcbiAgYXdhaXQgbWtkdGVtcChhc3luYyB3b3JrZGlyID0+IHtcbiAgICBhd2FpdCBmcy53cml0ZUZpbGUocGF0aC5qb2luKHdvcmtkaXIsICdpbmRleC50cycpLCBzb3VyY2UpO1xuICAgIGF3YWl0IHNyY21hayh3b3JrZGlyLCB7IGRlcHMgfSk7XG4gIH0pO1xuXG5cbiAgcmV0dXJuIHNvdXJjZTtcbn1cblxuYXN5bmMgZnVuY3Rpb24gbWtkdGVtcChjbG9zdXJlOiAoZGlyOiBzdHJpbmcpID0+IFByb21pc2U8dm9pZD4pIHtcbiAgY29uc3Qgd29ya2RpciA9IGF3YWl0IGZzLm1rZHRlbXAocGF0aC5qb2luKG9zLnRtcGRpcigpLCAnY2RrOHMtJykpO1xuICBhd2FpdCBjbG9zdXJlKHdvcmtkaXIpO1xufVxuIl19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const lib_1 = require("../lib"); | ||
const codemaker_1 = require("codemaker"); | ||
const fs = require("fs"); | ||
const os = require("os"); | ||
const path = require("path"); | ||
test('example with $ref', async () => { | ||
@@ -27,3 +23,3 @@ const g = new lib_1.TypeGenerator({ | ||
}); | ||
g.emitType('Person', { | ||
g.addType('Person', { | ||
required: ['name'], | ||
@@ -41,15 +37,9 @@ properties: { | ||
}); | ||
const code = new codemaker_1.CodeMaker(); | ||
code.openFile('person.ts'); | ||
g.writeToCodeMaker(code); | ||
code.closeFile('person.ts'); | ||
const outdir = fs.mkdtempSync(path.join(os.tmpdir(), 'json2jsii')); | ||
await code.save(outdir); | ||
expect(fs.readFileSync(path.join(outdir, 'person.ts'), 'utf-8')).toMatchSnapshot(); | ||
expect(await g.render()).toMatchSnapshot(); | ||
}); | ||
test('fails when trying to resolve an undefined $ref', () => { | ||
const g = new lib_1.TypeGenerator(); | ||
expect(() => g.emitType('Foo', { $ref: 'unresolvable' })).toThrow(/invalid \$ref {\"\$ref\":\"unresolvable\"}/); | ||
expect(() => g.emitType('Foo', { $ref: '#/definitions/unresolvable' })).toThrow(/unable to find a definition for the \$ref \"unresolvable\"/); | ||
expect(() => g.addType('Foo', { $ref: 'unresolvable' })).toThrow(/invalid \$ref {\"\$ref\":\"unresolvable\"}/); | ||
expect(() => g.addType('Foo', { $ref: '#/definitions/unresolvable' })).toThrow(/unable to find a definition for the \$ref \"unresolvable\"/); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNhZ2UudGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInVzYWdlLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnQ0FBdUM7QUFDdkMseUNBQXNDO0FBQ3RDLHlCQUF5QjtBQUN6Qix5QkFBeUI7QUFDekIsNkJBQTZCO0FBRTdCLElBQUksQ0FBQyxtQkFBbUIsRUFBRSxLQUFLLElBQUksRUFBRTtJQUNuQyxNQUFNLENBQUMsR0FBRyxJQUFJLG1CQUFhLENBQUM7UUFDMUIsV0FBVyxFQUFFO1lBQ1gsSUFBSSxFQUFFO2dCQUNKLFdBQVcsRUFBRSwrQkFBK0I7Z0JBQzVDLFFBQVEsRUFBRSxDQUFFLFdBQVcsRUFBRSxVQUFVLENBQUU7Z0JBQ3JDLFVBQVUsRUFBRTtvQkFDVixTQUFTLEVBQUU7d0JBQ1QsSUFBSSxFQUFFLFFBQVE7d0JBQ2QsV0FBVyxFQUFFLDhCQUE4QjtxQkFDNUM7b0JBQ0QsUUFBUSxFQUFFO3dCQUNSLElBQUksRUFBRSxRQUFRO3dCQUNkLFdBQVcsRUFBRSw2QkFBNkI7cUJBQzNDO2lCQUNGO2FBQ0Y7U0FDRjtLQUNGLENBQUMsQ0FBQ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vcjoge1xuICAgICAgICBkZXNjcmlwdGlvbjogJ0Zhdm9yaXRlIGNvbG9yLiBEZWZhdWx0IGlzIGdyZWVuJyxcbiAgICAgICAgZW51bTogWyAncmVkJywgJ2dyZWVuJywgJ2JsdWUnLCAneWVsbG93JyBdLFxuICAgICAgfSxcbiAgICB9LFxuICB9KTtcblxuICBleHBlY3QoYXdhaXQgZy5yZW5kZXIoKSkudG9NYXRjaFNuYXBzaG90KCk7XG59KTtcblxudGVzdCgnZmFpbHMgd2hlbiB0cnlpbmcgdG8gcmVzb2x2ZSBhbiB1bmRlZmluZWQgJHJlZicsICgpID0+IHtcbiAgY29uc3QgZyA9IG5ldyBUeXBlR2VuZXJhdG9yKCk7XG4gIGV4cGVjdCgoKSA9PiBnLmFkZFR5cGUoJ0ZvbycsIHsgJHJlZjogJ3VucmVzb2x2YWJsZScgfSkpLnRvVGhyb3coL2ludmFsaWQgXFwkcmVmIHtcXFwiXFwkcmVmXFxcIjpcXFwidW5yZXNvbHZhYmxlXFxcIn0vKTtcbiAgZXhwZWN0KCgpID0+IGcuYWRkVHlwZSgnRm9vJywgeyAkcmVmOiAnIy9kZWZpbml0aW9ucy91bnJlc29sdmFibGUnIH0pKS50b1Rocm93KC91bmFibGUgdG8gZmluZCBhIGRlZmluaXRpb24gZm9yIHRoZSBcXCRyZWYgXFxcInVucmVzb2x2YWJsZVxcXCIvKTtcbn0pOyJdfQ== |
@@ -1,1 +0,3 @@ | ||
{"version":"0.1.0"} | ||
{ | ||
"version": "0.1.1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
276831
41
1537
3
3
+ Addedcamelcase@^6.0.0
+ Addedsnake-case@^3.0.3
+ Addedcamelcase@6.3.0(transitive)
+ Addeddot-case@3.0.4(transitive)
+ Addedlower-case@2.0.2(transitive)
+ Addedno-case@3.0.4(transitive)
+ Addedsnake-case@3.0.4(transitive)
+ Addedtslib@2.8.1(transitive)
- Removedcodemaker@^1.6.0
- Removedcodemaker@1.105.0(transitive)