Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ function buildObject (context, location, input) {
const jsonPointer = location.jsonPointer || ''
const fullPath = `${schemaId}#${jsonPointer}`

if (context.recursivePaths.has(fullPath) || context.buildingSet.has(schema)) {
if (context.recursivePaths.has(fullPath) || context.buildingSet.has(schema) || (schemaId && schemaId !== '')) {
Comment thread
Eomm marked this conversation as resolved.
Outdated
const functionName = generateFuncName(context)
context.functionsNamesBySchema.set(schema, functionName)

Expand Down Expand Up @@ -627,7 +627,7 @@ function buildArray (context, location, input) {
const jsonPointer = location.jsonPointer || ''
const fullPath = `${schemaId}#${jsonPointer}`

if (context.recursivePaths.has(fullPath) || context.buildingSet.has(schema)) {
if (context.recursivePaths.has(fullPath) || context.buildingSet.has(schema) || (schemaId && schemaId !== '')) {
Comment thread
Eomm marked this conversation as resolved.
Outdated
const functionName = generateFuncName(context)
context.functionsNamesBySchema.set(schema, functionName)

Expand Down
Loading