OpenAPI-3.1-specific gaps in sample generation / parsing (agent-reported; [needs repro]). Relevant to this fork's OpenAPI-3 focus.
- Multi-type schemas sample only the first non-null type.
packages/dredd-transactions/compile/openapi31.js: schemaTypes(resolvedSchema).filter((t) => t !== 'null')[0]. For type: ["object","string"] only object is ever exercised.
- Dead
param.type switch. packages/dredd-transactions/compile/compileURI/validateParams.js switches on param.type, but compileParams.js never populates a type field — the type-validation branch is unreachable.
allOf of non-objects yields undefined instead of a sensible sample (openapi31.js allOf handler).
- YAML parse errors swallowed.
packages/dredd-transactions/parse/index.js: yaml.load failure is caught and discarded, so users get a generic "unrecognized format" instead of the YAML error.
Tasks
OpenAPI-3.1-specific gaps in sample generation / parsing (agent-reported; [needs repro]). Relevant to this fork's OpenAPI-3 focus.
packages/dredd-transactions/compile/openapi31.js:schemaTypes(resolvedSchema).filter((t) => t !== 'null')[0]. Fortype: ["object","string"]onlyobjectis ever exercised.param.typeswitch.packages/dredd-transactions/compile/compileURI/validateParams.jsswitches onparam.type, butcompileParams.jsnever populates atypefield — the type-validation branch is unreachable.allOfof non-objects yieldsundefinedinstead of a sensible sample (openapi31.jsallOf handler).packages/dredd-transactions/parse/index.js:yaml.loadfailure is caught and discarded, so users get a generic "unrecognized format" instead of the YAML error.Tasks
param.typeswitch, or populatetypeupstream so validation runs.allOfwith primitive subschemas.