Родитель
0a7acc96f0
Коммит
25f17f7cfa
|
@ -47,12 +47,12 @@
|
|||
"type": "node",
|
||||
"request": "launch",
|
||||
"name": "Resolve Spec",
|
||||
"program": "${workspaceRoot}/cli.js",
|
||||
"program": "${workspaceRoot}/dist/cli.js",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"args": [
|
||||
"resolve-spec",
|
||||
"../upstream/azure-rest-api-specs/specification/cognitiveservices/data-plane/EntitySearch/v1.0/EntitySearch.json",
|
||||
"-capro"
|
||||
"-r",
|
||||
"../azure-rest-api-specs/specification/network/resource-manager/Microsoft.Network/stable/2018-08-01/applicationGateway.json"
|
||||
],
|
||||
"env": {}
|
||||
},
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
### 09/25/2018 0.6.2
|
||||
|
||||
- Bug fix for `resolve-spec` CLI (#320)
|
||||
|
||||
### 09/25/2018 0.6.1
|
||||
|
||||
- Semantic validation warning bug fix.
|
||||
|
|
|
@ -198,6 +198,7 @@ export async function resolveSpec(
|
|||
try {
|
||||
const result = await utils.parseJson(specPath)
|
||||
const resolver = new SpecResolver(specPath, result, options)
|
||||
await resolver.resolve();
|
||||
const resolvedSwagger = JSON.stringify(resolver.specInJson, null, 2)
|
||||
if (outputDir !== "./" && !fs.existsSync(outputDir)) {
|
||||
fs.mkdirSync(outputDir)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oav",
|
||||
"version": "0.6.1",
|
||||
"version": "0.6.2",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "oav",
|
||||
"version": "0.6.1",
|
||||
"version": "0.6.2",
|
||||
"author": {
|
||||
"name": "Microsoft Corporation",
|
||||
"email": "azsdkteam@microsoft.com",
|
||||
|
|
Загрузка…
Ссылка в новой задаче