@prantlf/jsonlint 11.5.0 → 11.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["lib/schema-drafts.js"],"names":["global","factory","exports","module","define","amd","self","jsonlintSchemaDrafts","this","id","$schema","description","definitions","schemaArray","type","minItems","items","$ref","positiveInteger","minimum","positiveIntegerDefault0","allOf","default","simpleTypes","enum","stringArray","uniqueItems","properties","title","multipleOf","exclusiveMinimum","maximum","exclusiveMaximum","maxLength","minLength","pattern","format","additionalItems","anyOf","maxItems","maxProperties","minProperties","required","additionalProperties","patternProperties","dependencies","oneOf","not","$id","nonNegativeInteger","nonNegativeIntegerDefault0","examples","contains","propertyNames","const","$comment","readOnly","contentMediaType","contentEncoding","if","then","else","Object","defineProperty","value"],"mappings":"CAAC,SAAUA,OAAQC,gBAEVC,UAAY,iBAAmBC,SAAW,YAAcF,QAAQC,gBAE5DE,SAAW,YAAcA,OAAOC,IAAMD,OAAO,uBAAwB,CAAC,WAAYH,UAEtFD,OAASA,QAAUM,KAAML,QAAQD,OAAOO,qBAAuB,MANxE,CAOEC,MAAM,SAAUN,SAAW,aAE7BA,QAAQ,wBAA0B,CAC9BO,GAAM,0CACNC,QAAW,0CACXC,YAAe,0BACfC,YAAe,CACXC,YAAe,CACXC,KAAQ,QACRC,SAAY,EACZC,MAAS,CAAEC,KAAQ,MAEvBC,gBAAmB,CACfJ,KAAQ,UACRK,QAAW,GAEfC,wBAA2B,CACvBC,MAAS,CAAE,CAAEJ,KAAQ,iCAAmC,CAAEK,QAAW,KAEzEC,YAAe,CACXC,KAAQ,CAAE,QAAS,UAAW,UAAW,OAAQ,SAAU,SAAU,WAEzEC,YAAe,CACXX,KAAQ,QACRE,MAAS,CAAEF,KAAQ,UACnBC,SAAY,EACZW,YAAe,OAGvBZ,KAAQ,SACRa,WAAc,CACVlB,GAAM,CACFK,KAAQ,UAEZJ,QAAW,CACPI,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E1B,KAAQ,KAClCL,YAAe,CACXE,KAAQ,SACR6B,qBAAwB,CAAE1B,KAAQ,KAClCK,QAAW,IAEfK,WAAc,CACVb,KAAQ,SACR6B,qBAAwB,CAAE1B,KAAQ,KAClCK,QAAW,IAEfsB,kBAAqB,CACjB9B,KAAQ,SACR6B,qBAAwB,CAAE1B,KAAQ,KAClCoC,cAAiB,CAAEjB,OAAU,SAC7Bd,QAAW,IAEfuB,aAAgB,CACZ/B,KAAQ,SACR6B,qBAAwB,CACpBL,MAAS,CACL,CAAErB,KAAQ,KACV,CAAEA,KAAQ,gCAItBoC,cAAiB,CAAEpC,KAAQ,KAC3BqC,MAAS,KACT9B,KAAQ,CACJV,KAAQ,QACRE,MAAS,KACTD,SAAY,EACZW,YAAe,MAEnBZ,KAAQ,CACJwB,MAAS,CACL,CAAErB,KAAQ,6BACV,CACIH,KAAQ,QACRE,MAAS,CAAEC,KAAQ,6BACnBF,SAAY,EACZW,YAAe,QAI3BU,OAAU,CAAEtB,KAAQ,UACpB2C,iBAAoB,CAAE3C,KAAQ,UAC9B4C,gBAAmB,CAAE5C,KAAQ,UAC7B6C,GAAM,CAAC1C,KAAQ,KACf2C,KAAQ,CAAC3C,KAAQ,KACjB4C,KAAQ,CAAC5C,KAAQ,KACjBI,MAAS,CAAEJ,KAAQ,6BACnBqB,MAAS,CAAErB,KAAQ,6BACnB6B,MAAS,CAAE7B,KAAQ,6BACnB8B,IAAO,CAAE9B,KAAQ,MAErBK,QAAW,MAGbwC,OAAOC,eAAe7D,QAAS,aAAc,CAAE8D,MAAO","file":"schema-drafts.js","sourcesContent":["(function (global, factory) {\n // eslint-disable-next-line no-unused-expressions, multiline-ternary\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports)\n // eslint-disable-next-line no-undef, multiline-ternary\n : typeof define === 'function' && define.amd ? define('jsonlintSchemaDrafts', ['exports'], factory)\n // eslint-disable-next-line no-undef\n : (global = global || self, factory(global.jsonlintSchemaDrafts = {}));\n}(this, function (exports) { 'use strict';\n\nexports[\"json-schema-draft-04\"] = {\n \"id\": \"http://json-schema.org/draft-04/schema#\",\n \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n \"description\": \"Core schema meta-schema\",\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"$ref\": \"#\" }\n },\n \"positiveInteger\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"positiveIntegerDefault0\": {\n \"allOf\": [ { \"$ref\": \"#/definitions/positiveInteger\" }, { \"default\": 0 } ]\n },\n \"simpleTypes\": {\n \"enum\": [ \"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\" ]\n },\n \"stringArray\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n },\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"$schema\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"default\": {},\n \"multipleOf\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"exclusiveMinimum\": true\n },\n \"maximum\": {\n \"type\": \"number\"\n },\n \"exclusiveMaximum\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"minimum\": {\n \"type\": \"number\"\n },\n \"exclusiveMinimum\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"maxLength\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minLength\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"pattern\": {\n \"type\": \"string\",\n \"format\": \"regex\"\n },\n \"additionalItems\": {\n \"anyOf\": [\n { \"type\": \"boolean\" },\n { \"$ref\": \"#\" }\n ],\n \"default\": {}\n },\n \"items\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/schemaArray\" }\n ],\n \"default\": {}\n },\n \"maxItems\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minItems\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"uniqueItems\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"maxProperties\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minProperties\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"required\": { \"$ref\": \"#/definitions/stringArray\" },\n \"additionalProperties\": {\n \"anyOf\": [\n { \"type\": \"boolean\" },\n { \"$ref\": \"#\" }\n ],\n \"default\": {}\n },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"patternProperties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"dependencies\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/stringArray\" }\n ]\n }\n },\n \"enum\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"uniqueItems\": true\n },\n \"type\": {\n \"anyOf\": [\n { \"$ref\": \"#/definitions/simpleTypes\" },\n {\n \"type\": \"array\",\n \"items\": { \"$ref\": \"#/definitions/simpleTypes\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n ]\n },\n \"format\": { \"type\": \"string\" },\n \"allOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"anyOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"oneOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"not\": { \"$ref\": \"#\" }\n },\n \"dependencies\": {\n \"exclusiveMaximum\": [ \"maximum\" ],\n \"exclusiveMinimum\": [ \"minimum\" ]\n },\n \"default\": {}\n}\n\nexports[\"json-schema-draft-06\"] = {\n \"$schema\": \"http://json-schema.org/draft-06/schema#\",\n \"$id\": \"http://json-schema.org/draft-06/schema#\",\n \"title\": \"Core schema meta-schema\",\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"$ref\": \"#\" }\n },\n \"nonNegativeInteger\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"nonNegativeIntegerDefault0\": {\n \"allOf\": [\n { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n { \"default\": 0 }\n ]\n },\n \"simpleTypes\": {\n \"enum\": [\n \"array\",\n \"boolean\",\n \"integer\",\n \"null\",\n \"number\",\n \"object\",\n \"string\"\n ]\n },\n \"stringArray\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"uniqueItems\": true,\n \"default\": []\n }\n },\n \"type\": [\"object\", \"boolean\"],\n \"properties\": {\n \"$id\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"$schema\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"$ref\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"default\": {},\n \"examples\": {\n \"type\": \"array\",\n \"items\": {}\n },\n \"multipleOf\": {\n \"type\": \"number\",\n \"exclusiveMinimum\": 0\n },\n \"maximum\": {\n \"type\": \"number\"\n },\n \"exclusiveMaximum\": {\n \"type\": \"number\"\n },\n \"minimum\": {\n \"type\": \"number\"\n },\n \"exclusiveMinimum\": {\n \"type\": \"number\"\n },\n \"maxLength\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minLength\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"pattern\": {\n \"type\": \"string\",\n \"format\": \"regex\"\n },\n \"additionalItems\": { \"$ref\": \"#\" },\n \"items\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/schemaArray\" }\n ],\n \"default\": {}\n },\n \"maxItems\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minItems\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"uniqueItems\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"contains\": { \"$ref\": \"#\" },\n \"maxProperties\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minProperties\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"required\": { \"$ref\": \"#/definitions/stringArray\" },\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"patternProperties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"dependencies\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/stringArray\" }\n ]\n }\n },\n \"propertyNames\": { \"$ref\": \"#\" },\n \"const\": {},\n \"enum\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"uniqueItems\": true\n },\n \"type\": {\n \"anyOf\": [\n { \"$ref\": \"#/definitions/simpleTypes\" },\n {\n \"type\": \"array\",\n \"items\": { \"$ref\": \"#/definitions/simpleTypes\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n ]\n },\n \"format\": { \"type\": \"string\" },\n \"allOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"anyOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"oneOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"not\": { \"$ref\": \"#\" }\n },\n \"default\": {}\n}\n\nexports[\"json-schema-draft-07\"] = {\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://json-schema.org/draft-07/schema#\",\n \"title\": \"Core schema meta-schema\",\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"$ref\": \"#\" }\n },\n \"nonNegativeInteger\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"nonNegativeIntegerDefault0\": {\n \"allOf\": [\n { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n { \"default\": 0 }\n ]\n },\n \"simpleTypes\": {\n \"enum\": [\n \"array\",\n \"boolean\",\n \"integer\",\n \"null\",\n \"number\",\n \"object\",\n \"string\"\n ]\n },\n \"stringArray\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"uniqueItems\": true,\n \"default\": []\n }\n },\n \"type\": [\"object\", \"boolean\"],\n \"properties\": {\n \"$id\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"$schema\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"$ref\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"$comment\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"default\": true,\n \"readOnly\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"examples\": {\n \"type\": \"array\",\n \"items\": true\n },\n \"multipleOf\": {\n \"type\": \"number\",\n \"exclusiveMinimum\": 0\n },\n \"maximum\": {\n \"type\": \"number\"\n },\n \"exclusiveMaximum\": {\n \"type\": \"number\"\n },\n \"minimum\": {\n \"type\": \"number\"\n },\n \"exclusiveMinimum\": {\n \"type\": \"number\"\n },\n \"maxLength\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minLength\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"pattern\": {\n \"type\": \"string\",\n \"format\": \"regex\"\n },\n \"additionalItems\": { \"$ref\": \"#\" },\n \"items\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/schemaArray\" }\n ],\n \"default\": true\n },\n \"maxItems\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minItems\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"uniqueItems\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"contains\": { \"$ref\": \"#\" },\n \"maxProperties\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minProperties\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"required\": { \"$ref\": \"#/definitions/stringArray\" },\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"patternProperties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"propertyNames\": { \"format\": \"regex\" },\n \"default\": {}\n },\n \"dependencies\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/stringArray\" }\n ]\n }\n },\n \"propertyNames\": { \"$ref\": \"#\" },\n \"const\": true,\n \"enum\": {\n \"type\": \"array\",\n \"items\": true,\n \"minItems\": 1,\n \"uniqueItems\": true\n },\n \"type\": {\n \"anyOf\": [\n { \"$ref\": \"#/definitions/simpleTypes\" },\n {\n \"type\": \"array\",\n \"items\": { \"$ref\": \"#/definitions/simpleTypes\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n ]\n },\n \"format\": { \"type\": \"string\" },\n \"contentMediaType\": { \"type\": \"string\" },\n \"contentEncoding\": { \"type\": \"string\" },\n \"if\": {\"$ref\": \"#\"},\n \"then\": {\"$ref\": \"#\"},\n \"else\": {\"$ref\": \"#\"},\n \"allOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"anyOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"oneOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"not\": { \"$ref\": \"#\" }\n },\n \"default\": true\n}\n\n Object.defineProperty(exports, '__esModule', { value: true });\n}));\n"]}
1
+ {"version":3,"file":"schema-drafts.js","names":["global","factory","exports","module","define","amd","self","jsonlintSchemaDrafts","this","id","$schema","description","definitions","schemaArray","type","minItems","items","$ref","positiveInteger","minimum","positiveIntegerDefault0","allOf","default","simpleTypes","enum","stringArray","uniqueItems","properties","title","multipleOf","exclusiveMinimum","maximum","exclusiveMaximum","maxLength","minLength","pattern","format","additionalItems","anyOf","maxItems","maxProperties","minProperties","required","additionalProperties","patternProperties","dependencies","oneOf","not","$id","nonNegativeInteger","nonNegativeIntegerDefault0","examples","contains","propertyNames","const","$comment","readOnly","contentMediaType","contentEncoding","if","then","else","Object","defineProperty","value"],"sources":["lib/schema-drafts.js"],"sourcesContent":["(function (global, factory) {\n // eslint-disable-next-line no-unused-expressions, multiline-ternary\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports)\n // eslint-disable-next-line no-undef, multiline-ternary\n : typeof define === 'function' && define.amd ? define('jsonlintSchemaDrafts', ['exports'], factory)\n // eslint-disable-next-line no-undef\n : (global = global || self, factory(global.jsonlintSchemaDrafts = {}));\n}(this, function (exports) { 'use strict';\n\nexports[\"json-schema-draft-04\"] = {\n \"id\": \"http://json-schema.org/draft-04/schema#\",\n \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n \"description\": \"Core schema meta-schema\",\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"$ref\": \"#\" }\n },\n \"positiveInteger\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"positiveIntegerDefault0\": {\n \"allOf\": [ { \"$ref\": \"#/definitions/positiveInteger\" }, { \"default\": 0 } ]\n },\n \"simpleTypes\": {\n \"enum\": [ \"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\" ]\n },\n \"stringArray\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n },\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\"\n },\n \"$schema\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"default\": {},\n \"multipleOf\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"exclusiveMinimum\": true\n },\n \"maximum\": {\n \"type\": \"number\"\n },\n \"exclusiveMaximum\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"minimum\": {\n \"type\": \"number\"\n },\n \"exclusiveMinimum\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"maxLength\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minLength\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"pattern\": {\n \"type\": \"string\",\n \"format\": \"regex\"\n },\n \"additionalItems\": {\n \"anyOf\": [\n { \"type\": \"boolean\" },\n { \"$ref\": \"#\" }\n ],\n \"default\": {}\n },\n \"items\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/schemaArray\" }\n ],\n \"default\": {}\n },\n \"maxItems\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minItems\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"uniqueItems\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"maxProperties\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minProperties\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"required\": { \"$ref\": \"#/definitions/stringArray\" },\n \"additionalProperties\": {\n \"anyOf\": [\n { \"type\": \"boolean\" },\n { \"$ref\": \"#\" }\n ],\n \"default\": {}\n },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"patternProperties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"dependencies\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/stringArray\" }\n ]\n }\n },\n \"enum\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"uniqueItems\": true\n },\n \"type\": {\n \"anyOf\": [\n { \"$ref\": \"#/definitions/simpleTypes\" },\n {\n \"type\": \"array\",\n \"items\": { \"$ref\": \"#/definitions/simpleTypes\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n ]\n },\n \"format\": { \"type\": \"string\" },\n \"allOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"anyOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"oneOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"not\": { \"$ref\": \"#\" }\n },\n \"dependencies\": {\n \"exclusiveMaximum\": [ \"maximum\" ],\n \"exclusiveMinimum\": [ \"minimum\" ]\n },\n \"default\": {}\n}\n\nexports[\"json-schema-draft-06\"] = {\n \"$schema\": \"http://json-schema.org/draft-06/schema#\",\n \"$id\": \"http://json-schema.org/draft-06/schema#\",\n \"title\": \"Core schema meta-schema\",\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"$ref\": \"#\" }\n },\n \"nonNegativeInteger\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"nonNegativeIntegerDefault0\": {\n \"allOf\": [\n { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n { \"default\": 0 }\n ]\n },\n \"simpleTypes\": {\n \"enum\": [\n \"array\",\n \"boolean\",\n \"integer\",\n \"null\",\n \"number\",\n \"object\",\n \"string\"\n ]\n },\n \"stringArray\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"uniqueItems\": true,\n \"default\": []\n }\n },\n \"type\": [\"object\", \"boolean\"],\n \"properties\": {\n \"$id\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"$schema\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"$ref\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"default\": {},\n \"examples\": {\n \"type\": \"array\",\n \"items\": {}\n },\n \"multipleOf\": {\n \"type\": \"number\",\n \"exclusiveMinimum\": 0\n },\n \"maximum\": {\n \"type\": \"number\"\n },\n \"exclusiveMaximum\": {\n \"type\": \"number\"\n },\n \"minimum\": {\n \"type\": \"number\"\n },\n \"exclusiveMinimum\": {\n \"type\": \"number\"\n },\n \"maxLength\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minLength\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"pattern\": {\n \"type\": \"string\",\n \"format\": \"regex\"\n },\n \"additionalItems\": { \"$ref\": \"#\" },\n \"items\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/schemaArray\" }\n ],\n \"default\": {}\n },\n \"maxItems\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minItems\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"uniqueItems\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"contains\": { \"$ref\": \"#\" },\n \"maxProperties\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minProperties\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"required\": { \"$ref\": \"#/definitions/stringArray\" },\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"patternProperties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"dependencies\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/stringArray\" }\n ]\n }\n },\n \"propertyNames\": { \"$ref\": \"#\" },\n \"const\": {},\n \"enum\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"uniqueItems\": true\n },\n \"type\": {\n \"anyOf\": [\n { \"$ref\": \"#/definitions/simpleTypes\" },\n {\n \"type\": \"array\",\n \"items\": { \"$ref\": \"#/definitions/simpleTypes\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n ]\n },\n \"format\": { \"type\": \"string\" },\n \"allOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"anyOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"oneOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"not\": { \"$ref\": \"#\" }\n },\n \"default\": {}\n}\n\nexports[\"json-schema-draft-07\"] = {\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\": \"http://json-schema.org/draft-07/schema#\",\n \"title\": \"Core schema meta-schema\",\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"$ref\": \"#\" }\n },\n \"nonNegativeInteger\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"nonNegativeIntegerDefault0\": {\n \"allOf\": [\n { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n { \"default\": 0 }\n ]\n },\n \"simpleTypes\": {\n \"enum\": [\n \"array\",\n \"boolean\",\n \"integer\",\n \"null\",\n \"number\",\n \"object\",\n \"string\"\n ]\n },\n \"stringArray\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"uniqueItems\": true,\n \"default\": []\n }\n },\n \"type\": [\"object\", \"boolean\"],\n \"properties\": {\n \"$id\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"$schema\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"$ref\": {\n \"type\": \"string\",\n \"format\": \"uri-reference\"\n },\n \"$comment\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"default\": true,\n \"readOnly\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"examples\": {\n \"type\": \"array\",\n \"items\": true\n },\n \"multipleOf\": {\n \"type\": \"number\",\n \"exclusiveMinimum\": 0\n },\n \"maximum\": {\n \"type\": \"number\"\n },\n \"exclusiveMaximum\": {\n \"type\": \"number\"\n },\n \"minimum\": {\n \"type\": \"number\"\n },\n \"exclusiveMinimum\": {\n \"type\": \"number\"\n },\n \"maxLength\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minLength\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"pattern\": {\n \"type\": \"string\",\n \"format\": \"regex\"\n },\n \"additionalItems\": { \"$ref\": \"#\" },\n \"items\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/schemaArray\" }\n ],\n \"default\": true\n },\n \"maxItems\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minItems\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"uniqueItems\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"contains\": { \"$ref\": \"#\" },\n \"maxProperties\": { \"$ref\": \"#/definitions/nonNegativeInteger\" },\n \"minProperties\": { \"$ref\": \"#/definitions/nonNegativeIntegerDefault0\" },\n \"required\": { \"$ref\": \"#/definitions/stringArray\" },\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"patternProperties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"propertyNames\": { \"format\": \"regex\" },\n \"default\": {}\n },\n \"dependencies\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/stringArray\" }\n ]\n }\n },\n \"propertyNames\": { \"$ref\": \"#\" },\n \"const\": true,\n \"enum\": {\n \"type\": \"array\",\n \"items\": true,\n \"minItems\": 1,\n \"uniqueItems\": true\n },\n \"type\": {\n \"anyOf\": [\n { \"$ref\": \"#/definitions/simpleTypes\" },\n {\n \"type\": \"array\",\n \"items\": { \"$ref\": \"#/definitions/simpleTypes\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n ]\n },\n \"format\": { \"type\": \"string\" },\n \"contentMediaType\": { \"type\": \"string\" },\n \"contentEncoding\": { \"type\": \"string\" },\n \"if\": {\"$ref\": \"#\"},\n \"then\": {\"$ref\": \"#\"},\n \"else\": {\"$ref\": \"#\"},\n \"allOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"anyOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"oneOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"not\": { \"$ref\": \"#\" }\n },\n \"default\": true\n}\n\n Object.defineProperty(exports, '__esModule', { value: true });\n}));\n"],"mappings":"CAAC,SAAUA,OAAQC,gBAEVC,UAAY,iBAAmBC,SAAW,YAAcF,QAAQC,gBAE5DE,SAAW,YAAcA,OAAOC,IAAMD,OAAO,uBAAwB,CAAC,WAAYH,UAEtFD,OAASA,QAAUM,KAAML,QAAQD,OAAOO,qBAAuB,CAAC,GACzE,EAPA,CAOEC,MAAM,SAAUN,SAAW,aAE7BA,QAAQ,wBAA0B,CAC9BO,GAAM,0CACNC,QAAW,0CACXC,YAAe,0BACfC,YAAe,CACXC,YAAe,CACXC,KAAQ,QACRC,SAAY,EACZC,MAAS,CAAEC,KAAQ,MAEvBC,gBAAmB,CACfJ,KAAQ,UACRK,QAAW,GAEfC,wBAA2B,CACvBC,MAAS,CAAE,CAAEJ,KAAQ,iCAAmC,CAAEK,QAAW,KAEzEC,YA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,IAAO,CAAE9B,KAAQ,MAErBK,QAAW,MAGbwC,OAAOC,eAAe7D,QAAS,aAAc,CAAE8D,MAAO,MACxD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["lib/sorter.js"],"names":["global","factory","exports","module","define","amd","self","jsonlintSorter","this","hasOwnProperty","Object","prototype","sortObject","o","Array","isArray","map","toString","call","sorted","key","a","push","sort","length","defineProperty","value"],"mappings":"CAAC,SAAUA,OAAQC,gBAEVC,UAAY,iBAAmBC,SAAW,YAAcF,QAAQC,gBAE5DE,SAAW,YAAcA,OAAOC,IAAMD,OAAO,kBAAmB,CAAC,WAAYH,UAEjFD,OAASA,QAAUM,KAAML,QAAQD,OAAOO,eAAiB,MANlE,CAOEC,MAAM,SAAUN,SAChB,aAGA,MAAMO,eAAiBC,OAAOC,UAAUF,eACxC,SAASG,WAAYC,GACnB,GAAIC,MAAMC,QAAQF,GAAI,CACpB,OAAOA,EAAEG,IAAIJ,iBACR,GAAIF,OAAOC,UAAUM,SAASC,KAAKL,KAAO,kBAAmB,CAClE,OAAOA,EAET,MAAMM,OAAS,GACf,IAAIC,IACJ,MAAMC,EAAI,GACV,IAAKD,OAAOP,EAAG,CACb,GAAIJ,eAAeS,KAAKL,EAAGO,KAAM,CAC/BC,EAAEC,KAAKF,MAGXC,EAAEE,OACF,IAAKH,IAAM,EAAGA,IAAMC,EAAEG,OAAQJ,MAAO,CACnCD,OAAOE,EAAED,MAAQR,WAAWC,EAAEQ,EAAED,OAElC,OAAOD,OAGTjB,QAAQU,WAAaA,WAErBF,OAAOe,eAAevB,QAAS,aAAc,CAAEwB,MAAO","file":"sorter.js","sourcesContent":["(function (global, factory) {\n // eslint-disable-next-line no-unused-expressions, multiline-ternary\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports)\n // eslint-disable-next-line no-undef, multiline-ternary\n : typeof define === 'function' && define.amd ? define('jsonlint-sorter', ['exports'], factory)\n // eslint-disable-next-line no-undef\n : (global = global || self, factory(global.jsonlintSorter = {}))\n}(this, function (exports) {\n 'use strict'\n\n // from http://stackoverflow.com/questions/1359761/sorting-a-json-object-in-javascript\n const hasOwnProperty = Object.prototype.hasOwnProperty\n function sortObject (o) {\n if (Array.isArray(o)) {\n return o.map(sortObject)\n } else if (Object.prototype.toString.call(o) !== '[object Object]') {\n return o\n }\n const sorted = {}\n let key\n const a = []\n for (key in o) {\n if (hasOwnProperty.call(o, key)) {\n a.push(key)\n }\n }\n a.sort()\n for (key = 0; key < a.length; key++) {\n sorted[a[key]] = sortObject(o[a[key]])\n }\n return sorted\n }\n\n exports.sortObject = sortObject\n\n Object.defineProperty(exports, '__esModule', { value: true })\n}))\n"]}
1
+ {"version":3,"file":"sorter.js","names":["global","factory","exports","module","define","amd","self","jsonlintSorter","this","hasOwnProperty","Object","prototype","sortObject","o","Array","isArray","map","toString","call","sorted","key","a","push","sort","length","defineProperty","value"],"sources":["lib/sorter.js"],"sourcesContent":["(function (global, factory) {\n // eslint-disable-next-line no-unused-expressions, multiline-ternary\n typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports)\n // eslint-disable-next-line no-undef, multiline-ternary\n : typeof define === 'function' && define.amd ? define('jsonlint-sorter', ['exports'], factory)\n // eslint-disable-next-line no-undef\n : (global = global || self, factory(global.jsonlintSorter = {}))\n}(this, function (exports) {\n 'use strict'\n\n // from http://stackoverflow.com/questions/1359761/sorting-a-json-object-in-javascript\n const hasOwnProperty = Object.prototype.hasOwnProperty\n function sortObject (o) {\n if (Array.isArray(o)) {\n return o.map(sortObject)\n } else if (Object.prototype.toString.call(o) !== '[object Object]') {\n return o\n }\n const sorted = {}\n let key\n const a = []\n for (key in o) {\n if (hasOwnProperty.call(o, key)) {\n a.push(key)\n }\n }\n a.sort()\n for (key = 0; key < a.length; key++) {\n sorted[a[key]] = sortObject(o[a[key]])\n }\n return sorted\n }\n\n exports.sortObject = sortObject\n\n Object.defineProperty(exports, '__esModule', { value: true })\n}))\n"],"mappings":"CAAC,SAAUA,OAAQC,gBAEVC,UAAY,iBAAmBC,SAAW,YAAcF,QAAQC,gBAE5DE,SAAW,YAAcA,OAAOC,IAAMD,OAAO,kBAAmB,CAAC,WAAYH,UAEjFD,OAASA,QAAUM,KAAML,QAAQD,OAAOO,eAAiB,CAAC,GACnE,EAPA,CAOEC,MAAM,SAAUN,SAChB,aAGA,MAAMO,eAAiBC,OAAOC,UAAUF,eACxC,SAASG,WAAYC,GACnB,GAAIC,MAAMC,QAAQF,GAAI,CACpB,OAAOA,EAAEG,IAAIJ,WACf,MAAO,GAAIF,OAAOC,UAAUM,SAASC,KAAKL,KAAO,kBAAmB,CAClE,OAAOA,CACT,CACA,MAAMM,OAAS,CAAC,EAChB,IAAIC,IACJ,MAAMC,EAAI,GACV,IAAKD,OAAOP,EAAG,CACb,GAAIJ,eAAeS,KAAKL,EAAGO,KAAM,CAC/BC,EAAEC,KAAKF,IACT,CACF,CACAC,EAAEE,OACF,IAAKH,IAAM,EAAGA,IAAMC,EAAEG,OAAQJ,MAAO,CACnCD,OAAOE,EAAED,MAAQR,WAAWC,EAAEQ,EAAED,MAClC,CACA,OAAOD,MACT,CAEAjB,QAAQU,WAAaA,WAErBF,OAAOe,eAAevB,QAAS,aAAc,CAAEwB,MAAO,MACxD"}
@@ -1,2 +1,2 @@
1
- (function(global,factory){if(typeof exports==="object"&&typeof module!=="undefined"){const jsonlint=require("./jsonlint");const Ajv=require("ajv");function requireSchemaDraft(environment){return require("ajv/lib/refs/"+environment+".json")}factory(exports,Ajv,jsonlint,requireSchemaDraft)}else if(typeof define==="function"&&define.amd){define("jsonlint-validator",["exports","ajv","jsonlint","jsonlint-schema-drafts"],(function(exports,jsonlint,Ajv,schemaDrafts){function requireSchemaDraft(environment){return schemaDrafts[environment]}factory(exports,Ajv,jsonlint,requireSchemaDraft)}))}else{global=global||self;const requireSchemaDraft=function(environment){return global.jsonlintSchemaDrafts[environment]};factory(global.jsonlintValidator={},global.Ajv,global.jsonlint,requireSchemaDraft)}})(this,(function(exports,Ajv,jsonlint,requireSchemaDraft){"use strict";function addErrorLocation(problem,input,tokens,dataPath){const token=tokens.find((function(token){return dataPath===jsonlint.pathToPointer(token.path)}));if(token){const location=token.location.start;const offset=location.offset;const line=location.line;const column=location.column;const texts=jsonlint.getErrorTexts(problem.reason,input,offset,line,column);problem.message=texts.message;problem.excerpt=texts.excerpt;if(texts.pointer){problem.pointer=texts.pointer;problem.location={start:{column:column,line:line,offset:offset}}}return true}}function errorToProblem(error,input,tokens){const dataPath=error.dataPath;const schemaPath=error.schemaPath;const reason=(dataPath||"/")+" "+error.message+"; see "+schemaPath;const problem={reason:reason,dataPath:dataPath,schemaPath:schemaPath};if(!addErrorLocation(problem,input,tokens,dataPath)){problem.message=reason}return problem}function createError(errors,data,input,options){if(!input){input=JSON.stringify(data,undefined,2)}if(!options){options={}}Object.assign(options,{tokenLocations:true,tokenPaths:true});const tokens=jsonlint.tokenize(input,options);const problem=errorToProblem(errors[0],input,tokens);const error=new SyntaxError(problem.message);Object.assign(error,problem);return error}function createAjv(environment){const ajvOptions={jsonPointers:true};let ajv;if(!environment){ajvOptions.schemaId="auto";ajv=new Ajv(ajvOptions);ajv.addMetaSchema(requireSchemaDraft("json-schema-draft-04"));ajv.addMetaSchema(requireSchemaDraft("json-schema-draft-06"))}else if(environment==="json-schema-draft-07"){ajv=new Ajv(ajvOptions)}else if(environment==="json-schema-draft-06"){ajv=new Ajv(ajvOptions);ajv.addMetaSchema(requireSchemaDraft("json-schema-draft-06"))}else if(environment==="json-schema-draft-04"){ajvOptions.schemaId="id";ajv=new Ajv(ajvOptions);ajv.addMetaSchema(requireSchemaDraft("json-schema-draft-04"))}else{throw new RangeError('Unsupported environment for the JSON schema validation: "'+environment+'".')}return ajv}function compileSchema(ajv,schema,parseOptions){let parsed;try{parsed=jsonlint.parse(schema,parseOptions)}catch(error){error.message="Parsing the JSON schema failed.\n"+error.message;throw error}try{return ajv.compile(parsed)}catch(originalError){const errors=ajv.errors;const betterError=errors?createError(errors,parsed,schema,parseOptions):originalError;betterError.message="Compiling the JSON schema failed.\n"+betterError.message;throw betterError}}function compile(schema,environment){let options={};if(typeof environment==="object"&&!(environment instanceof String)){options=environment;environment=options.environment}const ajv=createAjv(environment);const parseOptions={mode:options.mode,ignoreComments:options.ignoreComments,ignoreTrailingCommas:options.ignoreTrailingCommas,allowSingleQuotedStrings:options.allowSingleQuotedStrings,allowDuplicateObjectKeys:options.allowDuplicateObjectKeys};const validate=compileSchema(ajv,schema,parseOptions);return function(data,input,options){if(typeof data==="string"||data instanceof String){options=input;input=data;data=jsonlint.parse(input,options)}else if(!(typeof input==="string"||input instanceof String)){options=input;input=undefined}if(validate(data)){return data}throw createError(validate.errors,data,input,options)}}exports.compile=compile;Object.defineProperty(exports,"__esModule",{value:true})}));
1
+ (function(global,factory){if(typeof exports==="object"&&typeof module!=="undefined"){const jsonlint=require("./jsonlint");const Ajv=require("ajv");function requireSchemaDraft(environment){return require("ajv/lib/refs/"+environment+".json")}factory(exports,Ajv,jsonlint,requireSchemaDraft)}else if(typeof define==="function"&&define.amd){define("jsonlint-validator",["exports","ajv","jsonlint","jsonlint-schema-drafts"],(function(exports,jsonlint,Ajv,schemaDrafts){function requireSchemaDraft(environment){return schemaDrafts[environment]}factory(exports,Ajv,jsonlint,requireSchemaDraft)}))}else{global=global||self;const requireSchemaDraft=function(environment){return global.jsonlintSchemaDrafts[environment]};factory(global.jsonlintValidator={},global.Ajv,global.jsonlint,requireSchemaDraft)}})(this,(function(exports,Ajv,jsonlint,requireSchemaDraft){"use strict";function addErrorLocation(problem,input,tokens,dataPath){const token=tokens.find((function(token){return dataPath===jsonlint.pathToPointer(token.path)}));if(token){const location=token.location.start;const offset=location.offset;const line=location.line;const column=location.column;const texts=jsonlint.getErrorTexts(problem.reason,input,offset,line,column);problem.message=texts.message;problem.excerpt=texts.excerpt;if(texts.pointer){problem.pointer=texts.pointer;problem.location={start:{column:column,line:line,offset:offset}}}return true}}function errorToProblem(error,input,tokens){const dataPath=error.dataPath;const schemaPath=error.schemaPath;const reason=(dataPath||"/")+" "+error.message+"; see "+schemaPath;const problem={reason:reason,dataPath:dataPath,schemaPath:schemaPath};if(!addErrorLocation(problem,input,tokens,dataPath)){problem.message=reason}return problem}function createError(errors,data,input,options){if(!input){input=JSON.stringify(data,undefined,2)}if(!options){options={}}Object.assign(options,{tokenLocations:true,tokenPaths:true});const tokens=jsonlint.tokenize(input,options);const problem=errorToProblem(errors[0],input,tokens);const error=new SyntaxError(problem.message);Object.assign(error,problem);return error}function createAjv(environment){const ajvOptions={jsonPointers:true};let ajv;if(!environment){ajvOptions.schemaId="auto";ajv=new Ajv(ajvOptions);ajv.addMetaSchema(requireSchemaDraft("json-schema-draft-04"));ajv.addMetaSchema(requireSchemaDraft("json-schema-draft-06"))}else if(environment==="json-schema-draft-07"){ajv=new Ajv(ajvOptions)}else if(environment==="json-schema-draft-06"){ajv=new Ajv(ajvOptions);ajv.addMetaSchema(requireSchemaDraft("json-schema-draft-06"))}else if(environment==="json-schema-draft-04"){ajvOptions.schemaId="id";ajv=new Ajv(ajvOptions);ajv.addMetaSchema(requireSchemaDraft("json-schema-draft-04"))}else{throw new RangeError('Unsupported environment for the JSON schema validation: "'+environment+'".')}return ajv}function compileSchema(ajv,schema,parseOptions){let parsed;try{parsed=jsonlint.parse(schema,parseOptions)}catch(error){error.message="Parsing the JSON schema failed.\n"+error.message;throw error}try{return ajv.compile(parsed)}catch(originalError){const errors=ajv.errors;const betterError=errors?createError(errors,parsed,schema,parseOptions):originalError;betterError.message="Compiling the JSON schema failed.\n"+betterError.message;throw betterError}}function compile(schema,environment){let options={};if(typeof environment==="object"&&!(environment instanceof String)){options=environment;environment=options.environment}const ajv=createAjv(environment);const parseOptions={mode:options.mode,ignoreBOM:options.ignoreBOM,ignoreComments:options.ignoreComments,ignoreTrailingCommas:options.ignoreTrailingCommas,allowSingleQuotedStrings:options.allowSingleQuotedStrings,allowDuplicateObjectKeys:options.allowDuplicateObjectKeys};const validate=compileSchema(ajv,schema,parseOptions);return function(data,input,options){if(typeof data==="string"||data instanceof String){options=input;input=data;data=jsonlint.parse(input,options)}else if(!(typeof input==="string"||input instanceof String)){options=input;input=undefined}if(validate(data)){return data}throw createError(validate.errors,data,input,options)}}exports.compile=compile;Object.defineProperty(exports,"__esModule",{value:true})}));
2
2
  //# sourceMappingURL=validator.min.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["lib/validator.js"],"names":["global","factory","exports","module","jsonlint","require","Ajv","requireSchemaDraft","environment","define","amd","schemaDrafts","self","jsonlintSchemaDrafts","jsonlintValidator","this","addErrorLocation","problem","input","tokens","dataPath","token","find","pathToPointer","path","location","start","offset","line","column","texts","getErrorTexts","reason","message","excerpt","pointer","errorToProblem","error","schemaPath","createError","errors","data","options","JSON","stringify","undefined","Object","assign","tokenLocations","tokenPaths","tokenize","SyntaxError","createAjv","ajvOptions","jsonPointers","ajv","schemaId","addMetaSchema","RangeError","compileSchema","schema","parseOptions","parsed","parse","compile","originalError","betterError","String","mode","ignoreComments","ignoreTrailingCommas","allowSingleQuotedStrings","allowDuplicateObjectKeys","validate","defineProperty","value"],"mappings":"CAAC,SAAUA,OAAQC,SACjB,UAAWC,UAAY,iBAAmBC,SAAW,YAAa,CAChE,MAAMC,SAAWC,QAAQ,cACzB,MAAMC,IAAMD,QAAQ,OAEpB,SAASE,mBAAoBC,aAC3B,OAAOH,QAAQ,gBAAkBG,YAAc,SAEjDP,QAAQC,QAASI,IAAKF,SAAUG,yBAE3B,UAAWE,SAAW,YAAcA,OAAOC,IAAK,CAErDD,OAAO,qBAAsB,CAAC,UAAW,MAAO,WAAY,2BAC1D,SAAUP,QAASE,SAAUE,IAAKK,cAChC,SAASJ,mBAAoBC,aAC3B,OAAOG,aAAaH,aAEtBP,QAAQC,QAASI,IAAKF,SAAUG,2BAE/B,CAELP,OAASA,QAAUY,KACnB,MAAML,mBAAqB,SAAUC,aACnC,OAAOR,OAAOa,qBAAqBL,cAErCP,QAAQD,OAAOc,kBAAoB,GAAId,OAAOM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BAA0B7B,QAAQ6B,yBAClCC,yBAA0B9B,QAAQ8B,0BAEpC,MAAMC,SAAWd,cAAcJ,IAAKK,OAAQC,cAC5C,OAAO,SAAUpB,KAAMvB,MAAOwB,SAC5B,UAAWD,OAAS,UAAYA,gBAAgB0B,OAAQ,CACtDzB,QAAUxB,MACVA,MAAQuB,KACRA,KAAOrC,SAAS2D,MAAM7C,MAAOwB,cACxB,YAAaxB,QAAU,UAAYA,iBAAiBiD,QAAS,CAClEzB,QAAUxB,MACVA,MAAQ2B,UAEV,GAAI4B,SAAShC,MAAO,CAClB,OAAOA,KAET,MAAMF,YAAYkC,SAASjC,OAAQC,KAAMvB,MAAOwB,UAIpDxC,QAAQ8D,QAAUA,QAElBlB,OAAO4B,eAAexE,QAAS,aAAc,CAAEyE,MAAO","file":"validator.js","sourcesContent":["(function (global, factory) {\n if (typeof exports === 'object' && typeof module !== 'undefined') {\n const jsonlint = require('./jsonlint')\n const Ajv = require('ajv')\n // eslint-disable-next-line no-inner-declarations\n function requireSchemaDraft (environment) {\n return require('ajv/lib/refs/' + environment + '.json')\n }\n factory(exports, Ajv, jsonlint, requireSchemaDraft)\n // eslint-disable-next-line no-undef\n } else if (typeof define === 'function' && define.amd) {\n // eslint-disable-next-line no-undef\n define('jsonlint-validator', ['exports', 'ajv', 'jsonlint', 'jsonlint-schema-drafts'],\n function (exports, jsonlint, Ajv, schemaDrafts) {\n function requireSchemaDraft (environment) {\n return schemaDrafts[environment]\n }\n factory(exports, Ajv, jsonlint, requireSchemaDraft)\n })\n } else {\n // eslint-disable-next-line no-undef\n global = global || self\n const requireSchemaDraft = function (environment) {\n return global.jsonlintSchemaDrafts[environment]\n }\n factory(global.jsonlintValidator = {}, global.Ajv, global.jsonlint, requireSchemaDraft)\n }\n}(this, function (exports, Ajv, jsonlint, requireSchemaDraft) {\n 'use strict'\n\n function addErrorLocation (problem, input, tokens, dataPath) {\n const token = tokens.find(function (token) {\n return dataPath === jsonlint.pathToPointer(token.path)\n })\n if (token) {\n const location = token.location.start\n const offset = location.offset\n const line = location.line\n const column = location.column\n const texts = jsonlint.getErrorTexts(problem.reason, input, offset, line, column)\n problem.message = texts.message\n problem.excerpt = texts.excerpt\n if (texts.pointer) {\n problem.pointer = texts.pointer\n problem.location = {\n start: {\n column,\n line,\n offset\n }\n }\n }\n return true\n }\n }\n\n function errorToProblem (error, input, tokens) {\n const dataPath = error.dataPath\n const schemaPath = error.schemaPath\n const reason = (dataPath || '/') + ' ' + error.message + '; see ' + schemaPath\n const problem = {\n reason,\n dataPath,\n schemaPath\n }\n if (!addErrorLocation(problem, input, tokens, dataPath)) {\n problem.message = reason\n }\n return problem\n }\n\n function createError (errors, data, input, options) {\n if (!input) {\n input = JSON.stringify(data, undefined, 2)\n }\n if (!options) {\n options = {}\n }\n Object.assign(options, {\n tokenLocations: true,\n tokenPaths: true\n })\n const tokens = jsonlint.tokenize(input, options)\n // var problems = errors.map(function (error) {\n // return errorToProblem(error, input, tokens)\n // })\n // var message = problems\n // .map(function (problem) {\n // return problem.message\n // })\n // .join('\\n')\n const problem = errorToProblem(errors[0], input, tokens)\n const error = new SyntaxError(problem.message)\n Object.assign(error, problem)\n return error\n }\n\n function createAjv (environment) {\n const ajvOptions = { jsonPointers: true }\n let ajv\n if (!environment) {\n ajvOptions.schemaId = 'auto'\n ajv = new Ajv(ajvOptions)\n ajv.addMetaSchema(requireSchemaDraft('json-schema-draft-04'))\n ajv.addMetaSchema(requireSchemaDraft('json-schema-draft-06'))\n } else if (environment === 'json-schema-draft-07') {\n ajv = new Ajv(ajvOptions)\n } else if (environment === 'json-schema-draft-06') {\n ajv = new Ajv(ajvOptions)\n ajv.addMetaSchema(requireSchemaDraft('json-schema-draft-06'))\n } else if (environment === 'json-schema-draft-04') {\n ajvOptions.schemaId = 'id'\n ajv = new Ajv(ajvOptions)\n ajv.addMetaSchema(requireSchemaDraft('json-schema-draft-04'))\n } else {\n throw new RangeError('Unsupported environment for the JSON schema validation: \"' +\n environment + '\".')\n }\n return ajv\n }\n\n function compileSchema (ajv, schema, parseOptions) {\n let parsed\n try {\n parsed = jsonlint.parse(schema, parseOptions)\n } catch (error) {\n error.message = 'Parsing the JSON schema failed.\\n' + error.message\n throw error\n }\n try {\n return ajv.compile(parsed)\n } catch (originalError) {\n const errors = ajv.errors\n const betterError = errors\n ? createError(errors, parsed, schema, parseOptions)\n : originalError\n betterError.message = 'Compiling the JSON schema failed.\\n' + betterError.message\n throw betterError\n }\n }\n\n function compile (schema, environment) {\n let options = {}\n if (typeof environment === 'object' && !(environment instanceof String)) {\n options = environment\n environment = options.environment\n }\n const ajv = createAjv(environment)\n const parseOptions = {\n mode: options.mode,\n ignoreComments: options.ignoreComments,\n ignoreTrailingCommas: options.ignoreTrailingCommas,\n allowSingleQuotedStrings: options.allowSingleQuotedStrings,\n allowDuplicateObjectKeys: options.allowDuplicateObjectKeys\n }\n const validate = compileSchema(ajv, schema, parseOptions)\n return function (data, input, options) {\n if (typeof data === 'string' || data instanceof String) {\n options = input\n input = data\n data = jsonlint.parse(input, options)\n } else if (!(typeof input === 'string' || input instanceof String)) {\n options = input\n input = undefined\n }\n if (validate(data)) {\n return data\n }\n throw createError(validate.errors, data, input, options)\n }\n }\n\n exports.compile = compile\n\n Object.defineProperty(exports, '__esModule', { value: true })\n}))\n"]}
1
+ {"version":3,"file":"validator.js","names":["global","factory","exports","module","jsonlint","require","Ajv","requireSchemaDraft","environment","define","amd","schemaDrafts","self","jsonlintSchemaDrafts","jsonlintValidator","this","addErrorLocation","problem","input","tokens","dataPath","token","find","pathToPointer","path","location","start","offset","line","column","texts","getErrorTexts","reason","message","excerpt","pointer","errorToProblem","error","schemaPath","createError","errors","data","options","JSON","stringify","undefined","Object","assign","tokenLocations","tokenPaths","tokenize","SyntaxError","createAjv","ajvOptions","jsonPointers","ajv","schemaId","addMetaSchema","RangeError","compileSchema","schema","parseOptions","parsed","parse","compile","originalError","betterError","String","mode","ignoreBOM","ignoreComments","ignoreTrailingCommas","allowSingleQuotedStrings","allowDuplicateObjectKeys","validate","defineProperty","value"],"sources":["lib/validator.js"],"sourcesContent":["(function (global, factory) {\n if (typeof exports === 'object' && typeof module !== 'undefined') {\n const jsonlint = require('./jsonlint')\n const Ajv = require('ajv')\n // eslint-disable-next-line no-inner-declarations\n function requireSchemaDraft (environment) {\n return require('ajv/lib/refs/' + environment + '.json')\n }\n factory(exports, Ajv, jsonlint, requireSchemaDraft)\n // eslint-disable-next-line no-undef\n } else if (typeof define === 'function' && define.amd) {\n // eslint-disable-next-line no-undef\n define('jsonlint-validator', ['exports', 'ajv', 'jsonlint', 'jsonlint-schema-drafts'],\n function (exports, jsonlint, Ajv, schemaDrafts) {\n function requireSchemaDraft (environment) {\n return schemaDrafts[environment]\n }\n factory(exports, Ajv, jsonlint, requireSchemaDraft)\n })\n } else {\n // eslint-disable-next-line no-undef\n global = global || self\n const requireSchemaDraft = function (environment) {\n return global.jsonlintSchemaDrafts[environment]\n }\n factory(global.jsonlintValidator = {}, global.Ajv, global.jsonlint, requireSchemaDraft)\n }\n}(this, function (exports, Ajv, jsonlint, requireSchemaDraft) {\n 'use strict'\n\n function addErrorLocation (problem, input, tokens, dataPath) {\n const token = tokens.find(function (token) {\n return dataPath === jsonlint.pathToPointer(token.path)\n })\n if (token) {\n const location = token.location.start\n const offset = location.offset\n const line = location.line\n const column = location.column\n const texts = jsonlint.getErrorTexts(problem.reason, input, offset, line, column)\n problem.message = texts.message\n problem.excerpt = texts.excerpt\n if (texts.pointer) {\n problem.pointer = texts.pointer\n problem.location = {\n start: {\n column,\n line,\n offset\n }\n }\n }\n return true\n }\n }\n\n function errorToProblem (error, input, tokens) {\n const dataPath = error.dataPath\n const schemaPath = error.schemaPath\n const reason = (dataPath || '/') + ' ' + error.message + '; see ' + schemaPath\n const problem = {\n reason,\n dataPath,\n schemaPath\n }\n if (!addErrorLocation(problem, input, tokens, dataPath)) {\n problem.message = reason\n }\n return problem\n }\n\n function createError (errors, data, input, options) {\n if (!input) {\n input = JSON.stringify(data, undefined, 2)\n }\n if (!options) {\n options = {}\n }\n Object.assign(options, {\n tokenLocations: true,\n tokenPaths: true\n })\n const tokens = jsonlint.tokenize(input, options)\n // var problems = errors.map(function (error) {\n // return errorToProblem(error, input, tokens)\n // })\n // var message = problems\n // .map(function (problem) {\n // return problem.message\n // })\n // .join('\\n')\n const problem = errorToProblem(errors[0], input, tokens)\n const error = new SyntaxError(problem.message)\n Object.assign(error, problem)\n return error\n }\n\n function createAjv (environment) {\n const ajvOptions = { jsonPointers: true }\n let ajv\n if (!environment) {\n ajvOptions.schemaId = 'auto'\n ajv = new Ajv(ajvOptions)\n ajv.addMetaSchema(requireSchemaDraft('json-schema-draft-04'))\n ajv.addMetaSchema(requireSchemaDraft('json-schema-draft-06'))\n } else if (environment === 'json-schema-draft-07') {\n ajv = new Ajv(ajvOptions)\n } else if (environment === 'json-schema-draft-06') {\n ajv = new Ajv(ajvOptions)\n ajv.addMetaSchema(requireSchemaDraft('json-schema-draft-06'))\n } else if (environment === 'json-schema-draft-04') {\n ajvOptions.schemaId = 'id'\n ajv = new Ajv(ajvOptions)\n ajv.addMetaSchema(requireSchemaDraft('json-schema-draft-04'))\n } else {\n throw new RangeError('Unsupported environment for the JSON schema validation: \"' +\n environment + '\".')\n }\n return ajv\n }\n\n function compileSchema (ajv, schema, parseOptions) {\n let parsed\n try {\n parsed = jsonlint.parse(schema, parseOptions)\n } catch (error) {\n error.message = 'Parsing the JSON schema failed.\\n' + error.message\n throw error\n }\n try {\n return ajv.compile(parsed)\n } catch (originalError) {\n const errors = ajv.errors\n const betterError = errors\n ? createError(errors, parsed, schema, parseOptions)\n : originalError\n betterError.message = 'Compiling the JSON schema failed.\\n' + betterError.message\n throw betterError\n }\n }\n\n function compile (schema, environment) {\n let options = {}\n if (typeof environment === 'object' && !(environment instanceof String)) {\n options = environment\n environment = options.environment\n }\n const ajv = createAjv(environment)\n const parseOptions = {\n mode: options.mode,\n ignoreBOM: options.ignoreBOM,\n ignoreComments: options.ignoreComments,\n ignoreTrailingCommas: options.ignoreTrailingCommas,\n allowSingleQuotedStrings: options.allowSingleQuotedStrings,\n allowDuplicateObjectKeys: options.allowDuplicateObjectKeys\n }\n const validate = compileSchema(ajv, schema, parseOptions)\n return function (data, input, options) {\n if (typeof data === 'string' || data instanceof String) {\n options = input\n input = data\n data = jsonlint.parse(input, options)\n } else if (!(typeof input === 'string' || input instanceof String)) {\n options = input\n input = undefined\n }\n if (validate(data)) {\n return data\n }\n throw createError(validate.errors, data, input, options)\n }\n }\n\n exports.compile = compile\n\n Object.defineProperty(exports, '__esModule', { value: true })\n}))\n"],"mappings":"CAAC,SAAUA,OAAQC,SACjB,UAAWC,UAAY,iBAAmBC,SAAW,YAAa,CAChE,MAAMC,SAAWC,QAAQ,cACzB,MAAMC,IAAMD,QAAQ,OAEpB,SAASE,mBAAoBC,aAC3B,OAAOH,QAAQ,gBAAkBG,YAAc,QACjD,CACAP,QAAQC,QAASI,IAAKF,SAAUG,mBAElC,MAAO,UAAWE,SAAW,YAAcA,OAAOC,IAAK,CAErDD,OAAO,qBAAsB,CAAC,UAAW,MAAO,WAAY,2BAC1D,SAAUP,QAASE,SAAUE,IAAKK,cAChC,SAASJ,mBAAoBC,aAC3B,OAAOG,aAAaH,YACtB,CACAP,QAAQC,QAASI,IAAKF,SAAUG,mBAClC,GACJ,KAAO,CAELP,OAASA,QAAUY,KACnB,MAAML,mBAAqB,SAAUC,aACnC,OAAOR,OAAOa,qBAAqBL,YACrC,EACAP,QAAQD,OAAOc,kBAAoB,CAAC,EAAGd,OAAOM,IAAKN,OAAOI,SAAUG,mBACtE,CACF,EA3BA,CA2BEQ,MAAM,SAAUb,QAASI,IAAKF,SAAUG,oBACxC,aAEA,SAASS,iBAAkBC,QAASC,MAAOC,OAAQC,UACjD,MAAMC,MAAQF,OAAOG,MAAK,SAAUD,OAClC,OAAOD,WAAahB,SAASmB,cAAcF,MAAMG,KACnD,IACA,GAAIH,MAAO,CACT,MAAMI,SAAWJ,MAAMI,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