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

@redocly/openapi-core

Package Overview
Dependencies
Maintainers
5
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@redocly/openapi-core - npm Package Compare versions

Comparing version 1.0.0-beta.64 to 1.0.0-beta.65

lib/rules/common/info-description-override.d.ts

6

lib/rules/builtin.d.ts

@@ -10,6 +10,12 @@ import { CustomRulesConfig } from '../config/config';

'registry-dependencies': import("../visitors").Oas3Decorator;
'operation-description-override': import("../visitors").Oas3Decorator;
'tag-description-override': import("../visitors").Oas3Decorator;
'info-description-override': import("../visitors").Oas3Decorator;
};
oas2: {
'registry-dependencies': import("../visitors").Oas2Decorator;
'operation-description-override': import("../visitors").Oas2Decorator;
'tag-description-override': import("../visitors").Oas2Decorator;
'info-description-override': import("../visitors").Oas2Decorator;
};
};

3

lib/rules/oas2/index.d.ts

@@ -37,2 +37,5 @@ import { Oas2Decorator, Oas2Rule } from '../../visitors';

'registry-dependencies': Oas2Decorator;
'operation-description-override': Oas2Decorator;
'tag-description-override': Oas2Decorator;
'info-description-override': Oas2Decorator;
};

@@ -34,2 +34,5 @@ "use strict";

const no_ambiguous_paths_1 = require("../common/no-ambiguous-paths");
const operation_description_override_1 = require("../common/operation-description-override");
const tag_description_override_1 = require("../common/tag-description-override");
const info_description_override_1 = require("../common/info-description-override");
exports.rules = {

@@ -70,2 +73,5 @@ spec: spec_1.OasSpec,

'registry-dependencies': registry_dependencies_1.RegistryDependencies,
'operation-description-override': operation_description_override_1.OperationDescriptionOverride,
'tag-description-override': tag_description_override_1.TagDescriptionOverride,
'info-description-override': info_description_override_1.InfoDescriptionOverride,
};

@@ -7,2 +7,5 @@ import { Oas3RuleSet } from '../../oas-types';

'registry-dependencies': Oas3Decorator;
'operation-description-override': Oas3Decorator;
'tag-description-override': Oas3Decorator;
'info-description-override': Oas3Decorator;
};

@@ -42,2 +42,5 @@ "use strict";

const no_servers_empty_enum_1 = require("./no-servers-empty-enum");
const operation_description_override_1 = require("../common/operation-description-override");
const tag_description_override_1 = require("../common/tag-description-override");
const info_description_override_1 = require("../common/info-description-override");
exports.rules = {

@@ -81,3 +84,3 @@ spec: spec_1.OasSpec,

'no-undefined-server-variable': no_undefined_server_variable_1.NoUndefinedServerVariable,
'no-servers-empty-enum': no_servers_empty_enum_1.NoEmptyEnumServers
'no-servers-empty-enum': no_servers_empty_enum_1.NoEmptyEnumServers,
};

@@ -87,2 +90,5 @@ exports.preprocessors = {};

'registry-dependencies': registry_dependencies_1.RegistryDependencies,
'operation-description-override': operation_description_override_1.OperationDescriptionOverride,
'tag-description-override': tag_description_override_1.TagDescriptionOverride,
'info-description-override': info_description_override_1.InfoDescriptionOverride,
};

@@ -25,1 +25,2 @@ import { HttpResolveConfig } from './config/config';

export declare function omitObjectProps<T extends Record<string, unknown>>(object: T, keys: Array<string>): T;
export declare function readFileAsStringSync(filePath: string): string;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.omitObjectProps = exports.pickObjectProps = exports.match = exports.readFileFromUrl = exports.isPlainObject = exports.notUndefined = exports.loadYaml = exports.popStack = exports.pushStack = exports.stringifyYaml = exports.parseYaml = void 0;
exports.readFileAsStringSync = exports.omitObjectProps = exports.pickObjectProps = exports.match = exports.readFileFromUrl = exports.isPlainObject = exports.notUndefined = exports.loadYaml = exports.popStack = exports.pushStack = exports.stringifyYaml = exports.parseYaml = void 0;
const fs = require("fs");

@@ -80,1 +80,5 @@ const minimatch = require("minimatch");

exports.omitObjectProps = omitObjectProps;
function readFileAsStringSync(filePath) {
return fs.readFileSync(filePath, 'utf-8');
}
exports.readFileAsStringSync = readFileAsStringSync;

2

package.json
{
"name": "@redocly/openapi-core",
"version": "1.0.0-beta.64",
"version": "1.0.0-beta.65",
"description": "",

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

@@ -32,2 +32,5 @@ import { OasSpec } from '../common/spec';

import { NoAmbiguousPaths } from '../common/no-ambiguous-paths';
import { OperationDescriptionOverride } from '../common/operation-description-override';
import { TagDescriptionOverride } from '../common/tag-description-override';
import { InfoDescriptionOverride } from '../common/info-description-override';

@@ -70,2 +73,5 @@ export const rules = {

'registry-dependencies': RegistryDependencies as Oas2Decorator,
'operation-description-override': OperationDescriptionOverride as Oas2Decorator,
'tag-description-override': TagDescriptionOverride as Oas2Decorator,
'info-description-override': InfoDescriptionOverride as Oas2Decorator,
};
import { Oas3RuleSet } from '../../oas-types';
import { Oas3Decorator } from '../../visitors';
import { OasSpec } from '../common/spec';

@@ -40,5 +41,6 @@ import { Operation2xxResponse } from '../common/operation-2xx-response';

import { NoEmptyEnumServers } from './no-servers-empty-enum';
import { OperationDescriptionOverride } from '../common/operation-description-override';
import { TagDescriptionOverride } from '../common/tag-description-override';
import { InfoDescriptionOverride } from '../common/info-description-override';
import { Oas3Decorator } from '../../visitors';
export const rules = {

@@ -82,3 +84,3 @@ spec: OasSpec,

'no-undefined-server-variable': NoUndefinedServerVariable,
'no-servers-empty-enum': NoEmptyEnumServers
'no-servers-empty-enum': NoEmptyEnumServers,
} as Oas3RuleSet;

@@ -90,2 +92,5 @@

'registry-dependencies': RegistryDependencies as Oas3Decorator,
'operation-description-override': OperationDescriptionOverride as Oas3Decorator,
'tag-description-override': TagDescriptionOverride as Oas3Decorator,
'info-description-override': InfoDescriptionOverride as Oas3Decorator,
};

@@ -84,1 +84,5 @@ import * as fs from 'fs';

}
export function readFileAsStringSync(filePath: string) {
return fs.readFileSync(filePath, 'utf-8');
}

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