We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98b0605 commit 0db87c8Copy full SHA for 0db87c8
1 file changed
src/compileValueSchema.ts
@@ -44,10 +44,7 @@ export function compileValueSchema(
44
const { $ref, ...constraints } = schema;
45
if (Object.keys(constraints).length > 0) {
46
// Apply the constraints to the additionalProperties schema if it exists
47
- if (
48
- resolved.type === 'object' &&
49
- typeof resolved.additionalProperties === 'object'
50
- ) {
+ if (resolved.type === 'object' && typeof resolved.additionalProperties === 'object') {
51
return compileValueSchema(compiler, {
52
...resolved,
53
additionalProperties: { ...resolved.additionalProperties, ...constraints },
0 commit comments