@redocly/openapi-core
Advanced tools
Comparing version 1.25.8 to 1.25.9
# @redocly/openapi-core | ||
## 1.25.9 | ||
### Patch Changes | ||
- Updated @redocly/config to v0.15.0. | ||
## 1.25.8 | ||
@@ -4,0 +10,0 @@ |
@@ -14,3 +14,3 @@ "use strict"; | ||
const IGNORE_BANNER = `# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.\n` + | ||
`# See https://redoc.ly/docs/cli/ for more information.\n`; | ||
`# See https://redocly.com/docs/cli/ for more information.\n`; | ||
function getIgnoreFilePath(configFile) { | ||
@@ -17,0 +17,0 @@ if (configFile) { |
@@ -104,3 +104,3 @@ "use strict"; | ||
if (fs.lstatSync(absoluteRef).isDirectory()) { | ||
throw new Error(`Expected a file but received a folder at ${absoluteRef}`); | ||
throw new Error(`Expected a file but received a folder at ${absoluteRef}.`); | ||
} | ||
@@ -169,3 +169,3 @@ const content = await fs.promises.readFile(absoluteRef, 'utf-8'); | ||
const resolvedRefMap = new Map(); | ||
const seedNodes = new Set(); // format "${type}::${absoluteRef}${pointer}" | ||
const seenNodes = new Set(); // format "${type}::${absoluteRef}${pointer}" | ||
const resolvePromises = []; | ||
@@ -187,6 +187,6 @@ resolveRefsInParallel(rootDocument.parsed, rootDocument, '#/', rootType); | ||
const nodeId = `${type.name}::${nodeAbsoluteRef}`; | ||
if (seedNodes.has(nodeId)) { | ||
if (seenNodes.has(nodeId)) { | ||
return; | ||
} | ||
seedNodes.add(nodeId); | ||
seenNodes.add(nodeId); | ||
const [_, anchor] = Object.entries(node).find(([key]) => key === '$anchor') || []; | ||
@@ -193,0 +193,0 @@ if (anchor) { |
{ | ||
"name": "@redocly/openapi-core", | ||
"version": "1.25.8", | ||
"version": "1.25.9", | ||
"description": "", | ||
@@ -35,7 +35,7 @@ "main": "lib/index.js", | ||
"contributors": [ | ||
"Roman Hotsiy <roman@redoc.ly> (https://redoc.ly/)" | ||
"Roman Hotsiy <roman@redocly.com> (https://redocly.com/)" | ||
], | ||
"dependencies": { | ||
"@redocly/ajv": "^8.11.2", | ||
"@redocly/config": "^0.12.1", | ||
"@redocly/config": "^0.15.0", | ||
"colorette": "^1.2.0", | ||
@@ -42,0 +42,0 @@ "https-proxy-agent": "^7.0.4", |
@@ -202,3 +202,2 @@ import * as path from 'path'; | ||
graphql: | ||
pagination: section | ||
menu: | ||
@@ -205,0 +204,0 @@ requireExactGroups: false |
@@ -401,3 +401,3 @@ import { BaseResolver, resolveDocument, makeRefId, makeDocumentFromString } from './resolve'; | ||
Root: { | ||
enter(root: any, ctx: any) { | ||
enter(root: any, ctx: UserContext) { | ||
rootLocation = ctx.location; | ||
@@ -421,3 +421,3 @@ if (version === SpecMajorVersion.OAS3) { | ||
visitor.DiscriminatorMapping = { | ||
leave(mapping: Record<string, string>, ctx: any) { | ||
leave(mapping: Record<string, string>, ctx: UserContext) { | ||
for (const name of Object.keys(mapping)) { | ||
@@ -424,0 +424,0 @@ const $ref = mapping[name]; |
@@ -37,3 +37,3 @@ import * as fs from 'fs'; | ||
`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.\n` + | ||
`# See https://redoc.ly/docs/cli/ for more information.\n`; | ||
`# See https://redocly.com/docs/cli/ for more information.\n`; | ||
@@ -40,0 +40,0 @@ function getIgnoreFilePath(configFile?: string): string | undefined { |
@@ -129,3 +129,3 @@ import * as fs from 'fs'; | ||
if (fs.lstatSync(absoluteRef).isDirectory()) { | ||
throw new Error(`Expected a file but received a folder at ${absoluteRef}`); | ||
throw new Error(`Expected a file but received a folder at ${absoluteRef}.`); | ||
} | ||
@@ -237,3 +237,3 @@ const content = await fs.promises.readFile(absoluteRef, 'utf-8'); | ||
const resolvedRefMap: ResolvedRefMap = new Map(); | ||
const seedNodes = new Set<string>(); // format "${type}::${absoluteRef}${pointer}" | ||
const seenNodes = new Set<string>(); // format "${type}::${absoluteRef}${pointer}" | ||
@@ -267,7 +267,7 @@ const resolvePromises: Array<Promise<void>> = []; | ||
const nodeId = `${type.name}::${nodeAbsoluteRef}`; | ||
if (seedNodes.has(nodeId)) { | ||
if (seenNodes.has(nodeId)) { | ||
return; | ||
} | ||
seedNodes.add(nodeId); | ||
seenNodes.add(nodeId); | ||
@@ -274,0 +274,0 @@ const [_, anchor] = Object.entries(node).find(([key]) => key === '$anchor') || []; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3039397
54574
+ Added@redocly/config@0.15.0(transitive)
- Removed@redocly/config@0.12.1(transitive)
Updated@redocly/config@^0.15.0