New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@redocly/openapi-core

Package Overview
Dependencies
Maintainers
7
Versions
192
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.93 to 1.0.0-beta.94

src/config/__tests__/config.test.ts

2

__tests__/normalizeVisitors.test.ts

@@ -115,3 +115,3 @@ import { normalizeVisitors, VisitorLevelContext } from '../src/visitors';

expect(normalized.Parameter.enter).toHaveLength(1);
expect(normalized.Parameter_List.enter).toHaveLength(2);
expect(normalized.ParameterList.enter).toHaveLength(2);
});

@@ -118,0 +118,0 @@

@@ -1060,8 +1060,8 @@ import outdent from 'outdent';

"enter PathItem",
"enter Parameter_List",
"enter ParameterList",
"enter Parameter",
"leave Parameter",
"leave Parameter_List",
"leave ParameterList",
"enter Operation",
"enter Parameter_List",
"enter ParameterList",
"enter ref #/components/parameters/shared_a",

@@ -1075,3 +1075,3 @@ "enter Parameter",

"leave Parameter",
"leave Parameter_List",
"leave ParameterList",
"leave Operation",

@@ -1409,6 +1409,6 @@ "leave PathItem",

"enter hook test",
"enter Parameter_List",
"enter ParameterList",
"enter Parameter",
"leave Parameter",
"leave Parameter_List",
"leave ParameterList",
"leave hook test",

@@ -1415,0 +1415,0 @@ "leave XWebHooks",

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

return {
name: typeName + '_List',
name: `${typeName}List`,
properties: {},

@@ -15,3 +15,3 @@ items: typeName,

return {
name: typeName + '_Map',
name: `${typeName}Map`,
properties: {},

@@ -18,0 +18,0 @@ additionalProperties: () => typeName,

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

required: ['openapi', 'info'],
requiredOneOf: ['paths', 'components', 'webhooks']
requiredOneOf: ['paths', 'components', 'webhooks'],
};

@@ -107,3 +107,6 @@ const License = {

if (Array.isArray(value)) {
return { type: 'array', items: { enum: ['object', 'array', 'string', 'number', 'integer', 'boolean', 'null'] } };
return {
type: 'array',
items: { enum: ['object', 'array', 'string', 'number', 'integer', 'boolean', 'null'] },
};
}

@@ -129,3 +132,10 @@ else {

unevaluatedItems: 'Schema',
unevaluatedProperties: 'Schema',
unevaluatedProperties: (value) => {
if (typeof value === 'boolean') {
return { type: 'boolean' };
}
else {
return 'Schema';
}
},
summary: { type: 'string' },

@@ -201,5 +211,21 @@ properties: 'SchemaProperties',

case 'authorizationCode':
return ['type', 'flows', 'authorizationUrl', 'refreshUrl', 'tokenUrl', 'description', 'scopes'];
return [
'type',
'flows',
'authorizationUrl',
'refreshUrl',
'tokenUrl',
'description',
'scopes',
];
default:
return ['type', 'flows', 'authorizationUrl', 'refreshUrl', 'tokenUrl', 'description', 'scopes'];
return [
'type',
'flows',
'authorizationUrl',
'refreshUrl',
'tokenUrl',
'description',
'scopes',
];
}

@@ -206,0 +232,0 @@ case 'openIdConnect':

{
"name": "@redocly/openapi-core",
"version": "1.0.0-beta.93",
"version": "1.0.0-beta.94",
"description": "",

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

@@ -179,3 +179,3 @@ import { outdent } from 'outdent';

"location": "#/servers",
"message": "Expected type \`Server_List\` (array) but got \`object\`",
"message": "Expected type \`ServerList\` (array) but got \`object\`",
},

@@ -182,0 +182,0 @@ ]

@@ -52,3 +52,3 @@ export type ScalarSchema = {

return {
name: typeName + '_List',
name: `${typeName}List`,
properties: {},

@@ -61,3 +61,3 @@ items: typeName,

return {
name: typeName + '_Map',
name: `${typeName}Map`,
properties: {},

@@ -64,0 +64,0 @@ additionalProperties: () => typeName,

import { NodeType, listOf, mapOf } from '.';
import { Oas3Types } from './oas3'
import { Oas3Types } from './oas3';

@@ -18,3 +18,3 @@ const DefinitionRoot: NodeType = {

required: ['openapi', 'info'],
requiredOneOf: ['paths', 'components', 'webhooks']
requiredOneOf: ['paths', 'components', 'webhooks'],
};

@@ -110,7 +110,10 @@

if (Array.isArray(value)) {
return { type: 'array', items: { enum: ['object', 'array', 'string', 'number', 'integer', 'boolean', 'null'] } }
return {
type: 'array',
items: { enum: ['object', 'array', 'string', 'number', 'integer', 'boolean', 'null'] },
};
} else {
return {
enum: ['object', 'array', 'string', 'number', 'integer', 'boolean', 'null'],
}
};
}

@@ -131,3 +134,9 @@ },

unevaluatedItems: 'Schema',
unevaluatedProperties: 'Schema',
unevaluatedProperties: (value: unknown) => {
if (typeof value === 'boolean') {
return { type: 'boolean' };
} else {
return 'Schema';
}
},
summary: { type: 'string' },

@@ -202,5 +211,21 @@ properties: 'SchemaProperties',

case 'authorizationCode':
return ['type', 'flows', 'authorizationUrl', 'refreshUrl', 'tokenUrl', 'description', 'scopes'];
return [
'type',
'flows',
'authorizationUrl',
'refreshUrl',
'tokenUrl',
'description',
'scopes',
];
default:
return ['type', 'flows', 'authorizationUrl', 'refreshUrl', 'tokenUrl', 'description', 'scopes'];
return [
'type',
'flows',
'authorizationUrl',
'refreshUrl',
'tokenUrl',
'description',
'scopes',
];
}

@@ -207,0 +232,0 @@ case 'openIdConnect':

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