Skip to content

Commit

Permalink
Merge branch 'vega:next' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-coster committed Sep 3, 2022
2 parents f6d4d24 + 3124c34 commit d0d51a7
Show file tree
Hide file tree
Showing 3 changed files with 526 additions and 405 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -50,7 +50,7 @@
"json5": "^2.2.1",
"normalize-path": "^3.0.0",
"safe-stable-stringify": "^2.3.1",
"typescript": "~4.7.4"
"typescript": "~4.8.2"
},
"devDependencies": {
"@auto-it/conventional-commits": "^10.37.4",
Expand All @@ -72,7 +72,7 @@
"eslint": "^8.20.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^28.1.3",
"jest": "^29.0.1",
"jest-junit": "^14.0.0",
"prettier": "^2.7.1",
"ts-node": "^10.9.1",
Expand Down
4 changes: 3 additions & 1 deletion src/TypeFormatter/UnionTypeFormatter.ts
Expand Up @@ -56,7 +56,9 @@ export class UnionTypeFormatter implements SubTypeFormatter {

// Flatten anyOf inside anyOf unless the anyOf has an annotation
for (const def of definitions) {
if (Object.keys(def) === ["anyOf"]) {
const keys = Object.keys(def);

if (keys.length === 1 && keys[0] === "anyOf") {
flattenedDefinitions.push(...(def.anyOf as any));
} else {
flattenedDefinitions.push(def);
Expand Down

0 comments on commit d0d51a7

Please sign in to comment.