Issue was with merging schemas under allOf, specifically having additionalProperties: false. Third-party library (https://github.com/mokkabonna/json-schema-merge-allof) used for this purpose was defaulting to resolving no properties in such case leaving the resolved schema body empty.
Fix
We'll be using suggested option ignoreAdditionalProperties as true in such cases. This makes sure that we're keeping request data from schemas underlying allOf keywords correctly instead of considering additionalProperties in one of schema.
Overview
Issue reported by user: https://github.com/postmanlabs/openapi-to-postman/issues/417#issuecomment-2018756292
RCA
Issue was with merging schemas under
allOf
, specifically havingadditionalProperties: false
. Third-party library (https://github.com/mokkabonna/json-schema-merge-allof) used for this purpose was defaulting to resolving no properties in such case leaving the resolved schema body empty.Fix
We'll be using suggested option
ignoreAdditionalProperties
astrue
in such cases. This makes sure that we're keeping request data from schemas underlyingallOf
keywords correctly instead of consideringadditionalProperties
in one of schema.See more about this option here: https://github.com/mokkabonna/json-schema-merge-allof?tab=readme-ov-file#options