which I think should be the other way around: If normalization is enabled and the schema DOES NOT allow additionalProperties the cleaner should kick in, since then we need to clean out the disallowed fields. If I understand the code correctly, currently we check if normalization is enabled, and if so we only clean when the schema allows additionalProperties, which doesn't make sense since we actually want the additional properties to pass?
Hi @SaltyAom,
at /src/utils.ts:273 /src/utils.ts:347
you check the following condition:
which I think should be the other way around: If normalization is enabled and the schema DOES NOT allow additionalProperties the cleaner should kick in, since then we need to clean out the disallowed fields. If I understand the code correctly, currently we check if normalization is enabled, and if so we only clean when the schema allows additionalProperties, which doesn't make sense since we actually want the additional properties to pass?