Skip to content

Commit

Permalink
fix: properly inject $schema property
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 9, 2021
1 parent dafd6a1 commit ded914e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loader/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function babelPluginUntyped () {
}
} else {
// Object has not $schema
p.node.value.properties.unshift(astify({ $schema: schema }))
p.node.value.properties.unshift(...astify({ $schema: schema }).properties)
}
} else {
// Literal value
Expand Down

0 comments on commit ded914e

Please sign in to comment.