Skip to content

Commit

Permalink
prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiri111enz committed Jan 30, 2024
1 parent e6099ce commit e175998
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
52 changes: 26 additions & 26 deletions src/__tests__/examples/array.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ describe('openapi project with examples', () => {
oneOf: [
{
type: 'string',
default: 's'
default: 's',
},
{
type: 'integer',
default: '0'
}
]
default: '0',
},
],
},
}
}
},
},
},
})
.response(200, {
Expand Down Expand Up @@ -153,22 +153,22 @@ describe('openapi project with examples', () => {
c: {
type: 'string',
default: 'c'

Check failure on line 155 in src/__tests__/examples/array.test.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Insert `,`
}
}
},
},
},
{
type: 'object',
properties: {
d: {
type: 'string',
default: 'd'

Check failure on line 164 in src/__tests__/examples/array.test.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Insert `,`
}
}
}
]
},
},
},
],
},
}
}
},
},
},
})
.response(200, {
Expand Down Expand Up @@ -204,10 +204,10 @@ describe('openapi project with examples', () => {
a: {
type: 'string',
default: 'a'

Check failure on line 206 in src/__tests__/examples/array.test.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Insert `,`
}
}
}
]
},
},
},
],
},
{
allOf: [
Expand All @@ -217,15 +217,15 @@ describe('openapi project with examples', () => {
b: {
type: 'string',
default: 'b'

Check failure on line 219 in src/__tests__/examples/array.test.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Insert `,`
}
}
}
]
}
]
},
},
},
],
},
],
},
}
}
},
},
},
})
.response(200, {
Expand Down
4 changes: 2 additions & 2 deletions src/includer/traverse/tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ function prepareSampleElement(
);
}
if (schema.items.oneOf) {
return schema.items.oneOf
.map((item) => prepareSampleElement(key, item, isRequired(key, schema), downCallstack));
return schema.items.oneOf.map((item) =>

Check failure on line 354 in src/includer/traverse/tables.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Delete `·`
prepareSampleElement(key, item, isRequired(key, schema), downCallstack));

Check failure on line 355 in src/includer/traverse/tables.ts

View workflow job for this annotation

GitHub Actions / build (18.x)

Replace `························prepareSampleElement(key,·item,·isRequired(key,·schema),·downCallstack)` with `····················prepareSampleElement(key,·item,·isRequired(key,·schema),·downCallstack),⏎················`
}
return [
prepareSampleElement(key, schema.items, isRequired(key, schema), downCallstack),
Expand Down

0 comments on commit e175998

Please sign in to comment.