This commit is contained in:
Sergey Shandar 2018-09-11 13:35:30 -07:00 коммит произвёл GitHub
Родитель 5f43b2db45
Коммит 89adda705c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 112 добавлений и 97 удалений

Просмотреть файл

@ -1,5 +1,9 @@
# Changelog
### 09/11/2018 0.5.9
- OAV is using '@ts-common/z-schema' instead of 'z-schema'
### 09/10/2018 0.5.8
- Fix JSON-Pointer encoding.

Просмотреть файл

@ -1,6 +1,6 @@
import { NodeError } from "./validationError"
import { forEach, isArray } from "@ts-common/iterator"
import { jsonSymbol } from "z-schema"
import { jsonSymbol } from "@ts-common/z-schema"
import { getInfo, getRootObjectInfo } from '@ts-common/source-map'
import { TitleObject } from '../validators/specTransformer'
import { log } from './logging'

Просмотреть файл

@ -5,7 +5,7 @@ import _ from "lodash"
import { FilePosition } from "@ts-common/source-map"
import { flatMap, fold } from "@ts-common/iterator"
import { errorsAddFileInfo } from "./errorFileInfo"
import { jsonSymbol, schemaSymbol } from 'z-schema';
import { jsonSymbol, schemaSymbol } from "@ts-common/z-schema"
/**
* @class

Просмотреть файл

@ -27,8 +27,8 @@ import { MutableStringMap } from "@ts-common/string-map"
import {
generatedPrefix,
getDefaultResponses
} from './cloudError';
import { pathToPtr } from 'json-refs';
} from "./cloudError"
import { pathToPtr } from "json-refs"
const skipIfUndefined = <T>(f: (v: T) => T): ((v: T | undefined) => T | undefined) =>
(v) => v !== undefined ? f(v) : undefined

187
package-lock.json сгенерированный
Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "oav",
"version": "0.5.8",
"version": "0.5.9",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -84,6 +84,18 @@
"resolved": "https://registry.npmjs.org/@ts-common/tuple/-/tuple-0.0.0.tgz",
"integrity": "sha512-4ETK16scspsJamVLbsBNTU/hnZUhY0gpTiIK2F7A/3Pr6kNg5FrPNu9x+aAx2OvfyGN+U8NiGROyaZXN4v1FHg=="
},
"@ts-common/z-schema": {
"version": "3.24.0",
"resolved": "https://registry.npmjs.org/@ts-common/z-schema/-/z-schema-3.24.0.tgz",
"integrity": "sha512-8oE5QhJmCmUztO7HS68hy6zLRkzhY8jxmHWD56TKVsZpHemF94gYgoKRKuBs72iP78Whdc0bmtjJcaWiTh899w==",
"requires": {
"commander": "^2.7.1",
"core-js": "^2.5.7",
"lodash.get": "^4.0.0",
"lodash.isequal": "^4.0.0",
"validator": "^10.0.0"
}
},
"@types/caseless": {
"version": "0.12.1",
"resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.1.tgz",
@ -206,9 +218,9 @@
"integrity": "sha1-oI7cxn6z/L6Z7WMIVTRKDPKCu40="
},
"acorn": {
"version": "5.7.2",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.2.tgz",
"integrity": "sha512-cJrKCNcr2kv8dlDnbw+JPUGjHZzo4myaxOLmpOX8a+rgX94YeTcTMv/LFJUSByRpc+i4GgVnnhLxvMu/2Y+rqw=="
"version": "5.7.3",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz",
"integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw=="
},
"acorn-jsx": {
"version": "3.0.1",
@ -220,7 +232,7 @@
"dependencies": {
"acorn": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz",
"resolved": "http://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz",
"integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo="
}
}
@ -242,9 +254,9 @@
},
"dependencies": {
"@types/node": {
"version": "8.10.28",
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.28.tgz",
"integrity": "sha512-iHsAzDg3OLH7JP+wipniUULHoDSWLgEDYOvsar6/mpAkTJd9/n23Ap8ikruMlvRTqMv/LXrflH9v/AfiEqaBGg=="
"version": "8.10.29",
"resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.29.tgz",
"integrity": "sha512-zbteaWZ2mdduacm0byELwtRyhYE40aK+pAanQk415gr1eRuu67x7QGOLmn8jz5zI8LDK7d0WI/oT6r5Trz4rzQ=="
}
}
},
@ -471,7 +483,7 @@
},
"readable-stream": {
"version": "1.1.14",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
"requires": {
"core-util-is": "~1.0.0",
@ -737,9 +749,9 @@
"integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA="
},
"deep-extend": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.1.tgz",
"integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w=="
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
"integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA=="
},
"deep-is": {
"version": "0.1.3",
@ -778,11 +790,11 @@
"integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak="
},
"deref": {
"version": "0.7.3",
"resolved": "https://registry.npmjs.org/deref/-/deref-0.7.3.tgz",
"integrity": "sha512-9ROdWS8nWgz/uJxYWIDZyEAP+oANSl/pNQO27GFJWptVVocqBQ95iKmcboxjvjPQ0rn3IpJcA450hIJpznzVLg==",
"version": "0.7.5",
"resolved": "https://registry.npmjs.org/deref/-/deref-0.7.5.tgz",
"integrity": "sha512-ohDRDnYJ71OaERSqqDsj7l3pdXgAVO1nO2hmMmSsulhzJDcC4StpSHRPqh1hgk0XCFAQRahaw/Co5piqR1s4fg==",
"requires": {
"deep-extend": "^0.5.0"
"deep-extend": "^0.6.0"
}
},
"destroy": {
@ -816,7 +828,7 @@
},
"readable-stream": {
"version": "1.1.14",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
"integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
"requires": {
"core-util-is": "~1.0.0",
@ -918,9 +930,9 @@
}
},
"es6-promise": {
"version": "4.2.4",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.4.tgz",
"integrity": "sha512-/NdNZVJg+uZgtm9eS3O6lrOLYmQag2DjdEXuPaHlZ6RuVqgqaVZfgYCepEIKsLqwdQArOPtC3XzRLqGGfT8KQQ=="
"version": "4.2.5",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.5.tgz",
"integrity": "sha512-n6wvpdE43VFtJq+lUDYDBFUwV8TZbuGXLV4D6wKafg13ldznKsyEvatubnmUe31zcvelSzOHF+XbaT+Bl9ObDg=="
},
"escape-html": {
"version": "1.0.3",
@ -951,7 +963,7 @@
},
"eslint": {
"version": "4.19.1",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz",
"resolved": "http://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz",
"integrity": "sha512-bT3/1x1EbZB7phzYu7vCr1v3ONuzDtX8WjuM9c0iYxe+cq+pwcKEoQjl7zd3RpC6YOLgnSy3cTN58M2jcoPDIQ==",
"requires": {
"ajv": "^5.3.0",
@ -1109,7 +1121,7 @@
},
"external-editor": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz",
"resolved": "http://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz",
"integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==",
"requires": {
"chardet": "^0.4.0",
@ -1363,7 +1375,7 @@
},
"http-errors": {
"version": "1.6.3",
"resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",
"resolved": "http://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz",
"integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=",
"requires": {
"depd": "~1.1.2",
@ -1638,27 +1650,26 @@
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
},
"json-schema-faker": {
"version": "0.5.0-rc9",
"resolved": "https://registry.npmjs.org/json-schema-faker/-/json-schema-faker-0.5.0-rc9.tgz",
"integrity": "sha1-yv8wpFX0+LJnxZdGuzqXVBQIfBE=",
"version": "0.5.0-rc15",
"resolved": "https://registry.npmjs.org/json-schema-faker/-/json-schema-faker-0.5.0-rc15.tgz",
"integrity": "sha512-q9my8/67q/JHTvZCuT75LQGfj8Ar4uRUK0rSvOWMu6VbYyrfR9b4GQOmgjHm8ez052+GVNfK+nSiM/WUsU/4Zw==",
"requires": {
"deref": "^0.7.0",
"json-schema-ref-parser": "^3.1.2",
"deref": "^0.7.1",
"json-schema-ref-parser": "^5.0.0",
"jsonpath": "^1.0.0",
"randexp": "^0.4.5",
"tslib": "^1.7.1"
},
"dependencies": {
"json-schema-ref-parser": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/json-schema-ref-parser/-/json-schema-ref-parser-3.3.1.tgz",
"integrity": "sha512-stQTMhec2R/p2L9dH4XXRlpNCP0mY8QrLd/9Kl+8SHJQmwHtE1nDfXH4wbsSM+GkJMl8t92yZbI0OIol432CIQ==",
"version": "5.1.3",
"resolved": "https://registry.npmjs.org/json-schema-ref-parser/-/json-schema-ref-parser-5.1.3.tgz",
"integrity": "sha512-CpDFlBwz/6la78hZxyB9FECVKGYjIIl3Ms3KLqFj99W7IIb7D00/RDgc++IGB4BBALl0QRhh5m4q5WNSopvLtQ==",
"requires": {
"call-me-maybe": "^1.0.1",
"debug": "^3.0.0",
"es6-promise": "^4.1.1",
"js-yaml": "^3.9.1",
"ono": "^4.0.2",
"z-schema": "^3.18.2"
"debug": "^3.1.0",
"js-yaml": "^3.12.0",
"ono": "^4.0.6"
}
}
}
@ -1685,7 +1696,7 @@
},
"es6-promise": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz",
"resolved": "http://registry.npmjs.org/es6-promise/-/es6-promise-3.3.1.tgz",
"integrity": "sha1-oIzd6EzNvzTQJ6FFG8kdS80ophM="
},
"ono": {
@ -4961,9 +4972,9 @@
}
},
"ono": {
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/ono/-/ono-4.0.6.tgz",
"integrity": "sha512-fJc3tfcgNzIEpDmZIyPRZkYrhoSoexXNnEN4I0QyVQ9l7NMw3sBFeG26/UpCdSXyAOr4wqr9+/ym/769sZakSw==",
"version": "4.0.7",
"resolved": "https://registry.npmjs.org/ono/-/ono-4.0.7.tgz",
"integrity": "sha512-FJiGEETwfSVyOwVTwQZD7XN69FRekvgtlobtvPwtilc7PxIHg3gKUykdNP7E9mC/VTF2cxqKZxUZfNKA3MuQLA==",
"requires": {
"format-util": "^1.0.3"
}
@ -4983,7 +4994,7 @@
},
"os-locale": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz",
"resolved": "http://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz",
"integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=",
"requires": {
"lcid": "^1.0.0"
@ -5026,9 +5037,9 @@
"integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM="
},
"path-loader": {
"version": "1.0.7",
"resolved": "https://registry.npmjs.org/path-loader/-/path-loader-1.0.7.tgz",
"integrity": "sha512-FIorK5Wwz8LzyklCCsPnHI2ieelYbnnGvEtBC4DxW8MkdzBbGKKhxoDH1pDPnQN5ll+gT7t77fac/VD7Vi1kFA==",
"version": "1.0.9",
"resolved": "https://registry.npmjs.org/path-loader/-/path-loader-1.0.9.tgz",
"integrity": "sha512-pD37gArtr+/72Tst9oJoDB9k7gB9A09Efj7yyBi5HDUqaxqULXBWW8Rnw2TfNF+3sN7QZv0ZNdW1Qx2pFGW5Jg==",
"requires": {
"native-promise-only": "^0.8.1",
"superagent": "^3.8.3"
@ -5187,7 +5198,7 @@
},
"readable-stream": {
"version": "2.3.6",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
"resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
"integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
"requires": {
"core-util-is": "~1.0.0",
@ -5548,9 +5559,9 @@
}
},
"spdx-license-ids": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz",
"integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA=="
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.1.tgz",
"integrity": "sha512-TfOfPcYGBB5sDuPn3deByxPhmfegAhpDYKSOXZQN81Oyrrif8ZCodOLzK3AesELnCx03kikhyDwh0pfvvQvF8w=="
},
"sprintf-js": {
"version": "1.0.3",
@ -5713,6 +5724,19 @@
"swagger-methods": "^1.0.0",
"swagger-schema-official": "2.0.0-bab6bed",
"z-schema": "^3.16.1"
},
"dependencies": {
"z-schema": {
"version": "3.23.0",
"resolved": "https://registry.npmjs.org/z-schema/-/z-schema-3.23.0.tgz",
"integrity": "sha512-D8XV0BiHuQbWNEgu68RpjFZJ0C7jt+WYoszXKOohe54TdoTTauUvBQx+lsYCdalGIjGTFdQs5dxKvCUonUERzQ==",
"requires": {
"commander": "^2.7.1",
"lodash.get": "^4.0.0",
"lodash.isequal": "^4.0.0",
"validator": "^10.0.0"
}
}
}
},
"swagger-schema-official": {
@ -5742,6 +5766,19 @@
"swagger-converter": "^0.1.7",
"traverse": "^0.6.6",
"z-schema": "^3.15.4"
},
"dependencies": {
"z-schema": {
"version": "3.23.0",
"resolved": "https://registry.npmjs.org/z-schema/-/z-schema-3.23.0.tgz",
"integrity": "sha512-D8XV0BiHuQbWNEgu68RpjFZJ0C7jt+WYoszXKOohe54TdoTTauUvBQx+lsYCdalGIjGTFdQs5dxKvCUonUERzQ==",
"requires": {
"commander": "^2.7.1",
"lodash.get": "^4.0.0",
"lodash.isequal": "^4.0.0",
"validator": "^10.0.0"
}
}
}
},
"table": {
@ -6038,14 +6075,14 @@
"integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8="
},
"winston": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/winston/-/winston-3.0.0.tgz",
"integrity": "sha512-7QyfOo1PM5zGL6qma6NIeQQMh71FBg/8fhkSAePqtf5YEi6t+UrPDcUuHhuuUasgso49ccvMEsmqr0GBG2qaMQ==",
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/winston/-/winston-3.1.0.tgz",
"integrity": "sha512-FsQfEE+8YIEeuZEYhHDk5cILo1HOcWkGwvoidLrDgPog0r4bser1lEIOco2dN9zpDJ1M88hfDgZvxe5z4xNcwg==",
"requires": {
"async": "^2.6.0",
"diagnostics": "^1.0.1",
"diagnostics": "^1.1.1",
"is-stream": "^1.1.0",
"logform": "^1.9.0",
"logform": "^1.9.1",
"one-time": "0.0.4",
"readable-stream": "^2.3.6",
"stack-trace": "0.0.x",
@ -6069,7 +6106,7 @@
},
"wrap-ansi": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
"resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
"requires": {
"string-width": "^1.0.1",
@ -6116,7 +6153,7 @@
},
"yargs": {
"version": "6.6.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz",
"resolved": "http://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz",
"integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=",
"requires": {
"camelcase": "^3.0.0",
@ -6143,24 +6180,24 @@
}
},
"yasway": {
"version": "1.0.10",
"resolved": "https://registry.npmjs.org/yasway/-/yasway-1.0.10.tgz",
"integrity": "sha512-K8ak9keFMY1ne3FYBaZqb3sGuXP3ayi9OcPHHEwcqtkNbwgdnUtGLnZqghZJq0nS2iJ1pF1xXqLX5JJD+VASVw==",
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/yasway/-/yasway-1.0.11.tgz",
"integrity": "sha512-jn/gltTm/DqHn1LO7P0wGfHzrLuOrRaHoOW+qG3CnvrvyKe1rbgvFLtD5/Ka83uHKWlOWbcmCqgMgQfVr4OcWA==",
"requires": {
"@ts-common/string-map": "0.0.26",
"@ts-common/z-schema": "^3.24.0",
"debug": "^3.1.0",
"faker": "^4.1.0",
"js-base64": "^2.4.8",
"js-yaml": "^3.12.0",
"json-refs": "^3.0.8",
"json-schema-faker": "^0.5.0-rc8",
"json-refs": "^3.0.10",
"json-schema-faker": "^0.5.0-rc15",
"lodash": "^4.17.10",
"native-promise-only": "^0.8.1",
"path-to-regexp": "^1.7.0",
"rewire": "^4.0.1",
"swagger-methods": "^1.0.0",
"swagger-schema-official": "2.0.0-bab6bed",
"z-schema": "github:sergey-shandar-forks/z-schema#22e74d61eefafcd33aa9979dc9fab398e8310364"
"swagger-schema-official": "2.0.0-bab6bed"
},
"dependencies": {
"isarray": {
@ -6168,21 +6205,6 @@
"resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
},
"json-refs": {
"version": "3.0.9",
"resolved": "https://registry.npmjs.org/json-refs/-/json-refs-3.0.9.tgz",
"integrity": "sha512-7N8yDNktol+fIQBQmCoaHwAxvga102kgil/awf8TrGHIhQh2o788inzS6QygfY0B++Z7v5NCAAmCddU+qJf6hA==",
"requires": {
"commander": "~2.11.0",
"graphlib": "^2.1.1",
"js-yaml": "^3.10.0",
"lodash": "^4.17.4",
"native-promise-only": "^0.8.1",
"path-loader": "^1.0.5",
"slash": "^1.0.0",
"uri-js": "^3.0.2"
}
},
"path-to-regexp": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz",
@ -6218,17 +6240,6 @@
}
}
}
},
"z-schema": {
"version": "github:sergey-shandar-forks/z-schema#22e74d61eefafcd33aa9979dc9fab398e8310364",
"from": "github:sergey-shandar-forks/z-schema#sergey/json",
"requires": {
"commander": "^2.7.1",
"core-js": "^2.5.7",
"lodash.get": "^4.0.0",
"lodash.isequal": "^4.0.0",
"validator": "^10.0.0"
}
}
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "oav",
"version": "0.5.8",
"version": "0.5.9",
"author": {
"name": "Microsoft Corporation",
"email": "azsdkteam@microsoft.com",
@ -17,6 +17,7 @@
"@ts-common/source-map": "0.2.7",
"@ts-common/string-map": "0.0.26",
"@ts-common/tuple": "0.0.0",
"@ts-common/z-schema": "^3.24.0",
"@types/lodash": "^4.14.116",
"@types/request": "^2.47.1",
"azure-arm-resource": "^2.0.0-preview",
@ -38,9 +39,8 @@
"vscode-jsonrpc": "^3.6.2",
"winston": "^3.0.0",
"yargs": "^6.6.0",
"yasway": "^1.0.10",
"yuml2svg": "^3.1.0",
"z-schema": "github:sergey-shandar-forks/z-schema#sergey/json"
"yasway": "^1.0.11",
"yuml2svg": "^3.1.0"
},
"devDependencies": {
"@types/glob": "^5.0.35",

Просмотреть файл

@ -4,7 +4,7 @@
import * as sway from "yasway"
import assert from "assert"
import { SpecValidator } from "../lib/validators/specValidator"
import { jsonSymbol } from 'z-schema';
import { jsonSymbol } from "@ts-common/z-schema"
const options: sway.Options = {
definition: {