Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@azure/avocado

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/avocado - npm Package Compare versions

Comparing version 0.8.9 to 0.8.10

2

dist/errors.d.ts
import { JsonParseError } from './errors';
import * as jsonParser from '@ts-common/json-parser';
import * as format from '@azure/swagger-validation-common';
declare type ErrorMessage = 'The example JSON file is not referenced from the swagger file.' | 'The swagger JSON file is not referenced from the readme file.' | 'The `readme.md` is not an AutoRest markdown file.' | 'The JSON file is not found but it is referenced from the readme file.' | 'The JSON file has a circular reference.' | 'The file is not a valid JSON file.' | 'Can not find readme.md in the folder. If no readme.md file, it will block SDK generation.' | 'The API version of the swagger is inconsistent with its file path.' | 'The default tag contains multiple API versions swaggers.' | 'The management plane swagger JSON file does not match its folder path. Make sure management plane swagger located in resource-manager folder' | 'The default tag does not contain all APIs in this RP. Please make sure the missing API swaggers are in the default tag.' | 'The default tag does not contains the latest API version. Please make sure the latest api version swaggers are in the default tag.' | 'The readme file has more than one default tag.';
declare type ErrorMessage = 'The example JSON file is not referenced from the swagger file.' | 'The swagger JSON file is not referenced from the readme file.' | 'The `readme.md` is not an AutoRest markdown file.' | 'The JSON file is not found but it is referenced from the readme file.' | 'The JSON file has a circular reference.' | 'The file is not a valid JSON file.' | 'Can not find readme.md in the folder. If no readme.md file, it will block SDK generation.' | 'The API version of the swagger is inconsistent with its file path.' | 'The default tag contains multiple API versions swaggers.' | 'The management plane swagger JSON file does not match its folder path. Make sure management plane swagger located in resource-manager folder' | 'The default tag should contain all APIs. The API path `{0}` is not in the default tag. Please make sure the missing API swaggers are in the default tag.' | 'The default tag does not contains the latest API version. Please make sure the latest api version swaggers are in the default tag.' | 'The readme file has more than one default tag.';
export interface IErrorBase {

@@ -6,0 +6,0 @@ readonly level: 'Warning' | 'Error' | 'Info';

@@ -36,3 +36,2 @@ "use strict";

{ tag: 'json', path: format.blobHref(format.getRelativeSwaggerPathToRepo(error.jsonUrl)) },
{ tag: 'path', path: error.apiPath },
];

@@ -39,0 +38,0 @@ case 'NOT_LATEST_API_VERSION_IN_DEFAULT_TAG':

@@ -82,3 +82,3 @@ "use strict";

readMeUrl: error.readMeUrl,
path: error.apiPath,
apiPath: error.apiPath,
};

@@ -448,3 +448,3 @@ }

// tslint:disable-next-line: max-line-length
'The default tag does not contain all APIs in this RP. Please make sure the missing API swaggers are in the default tag.',
`The default tag should contain all APIs. The API path \`${key}\` is not in the default tag. Please make sure the missing API swaggers are in the default tag.`,
});

@@ -451,0 +451,0 @@ }

{
"name": "@azure/avocado",
"version": "0.8.9",
"version": "0.8.10",
"description": "A validator of OpenAPI configurations",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -132,3 +132,3 @@ # Avocado

The default tag does not contain all APIs in this RP. Please make sure the missing API swaggers are in the default tag.
The default tag should contain all APIs. The API path \`${0}\` is not in the default tag. Please make sure the missing API swaggers are in the default tag.

@@ -135,0 +135,0 @@ To fix this error. You should add the missing API swaggers to the default tag. If the missing API swaggers are deprecated, in this case this error could be ignored.

@@ -21,3 +21,3 @@ import { JsonParseError } from './errors'

// tslint:disable-next-line: max-line-length
| 'The default tag does not contain all APIs in this RP. Please make sure the missing API swaggers are in the default tag.'
| 'The default tag should contain all APIs. The API path `{0}` is not in the default tag. Please make sure the missing API swaggers are in the default tag.'
// tslint:disable-next-line: max-line-length

@@ -118,3 +118,2 @@ | 'The default tag does not contains the latest API version. Please make sure the latest api version swaggers are in the default tag.'

{ tag: 'json', path: format.blobHref(format.getRelativeSwaggerPathToRepo(error.jsonUrl)) },
{ tag: 'path', path: error.apiPath },
]

@@ -121,0 +120,0 @@ case 'NOT_LATEST_API_VERSION_IN_DEFAULT_TAG':

@@ -82,3 +82,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

readMeUrl: error.readMeUrl,
path: error.apiPath,
apiPath: error.apiPath,
}

@@ -518,3 +518,3 @@ }

// tslint:disable-next-line: max-line-length
'The default tag does not contain all APIs in this RP. Please make sure the missing API swaggers are in the default tag.',
`The default tag should contain all APIs. The API path \`${key}\` is not in the default tag. Please make sure the missing API swaggers are in the default tag.`,
})

@@ -521,0 +521,0 @@ }

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc