Hi there,
I wanted to bring up an issue I encountered with Portman that might be worth looking into.
In my OpenAPI spec, I had a field using "types": ["object", "null"] (note the use of "types" instead of "type") along with "nullable": true. Portman generated the contract tests successfully, but the resulting JSON schema was invalid.
It might be helpful if Portman could catch this kind of inconsistency earlier in the process. For example, it could fail during the Postman collection generation with a clear JSON schema validation error. This change could make it easier for users to spot and fix these issues in their OpenAPI specs before they cause problems down the line.
I'm happy to provide more details or a specific example if that would be helpful. Thanks for considering this feedback!
Hi there,
I wanted to bring up an issue I encountered with Portman that might be worth looking into.
In my OpenAPI spec, I had a field using
"types": ["object", "null"](note the use of"types"instead of"type") along with"nullable": true. Portman generated the contract tests successfully, but the resulting JSON schema was invalid.It might be helpful if Portman could catch this kind of inconsistency earlier in the process. For example, it could fail during the Postman collection generation with a clear JSON schema validation error. This change could make it easier for users to spot and fix these issues in their OpenAPI specs before they cause problems down the line.
I'm happy to provide more details or a specific example if that would be helpful. Thanks for considering this feedback!