Skip to content

CP-4628 Fix instant body flags#3

Merged
sfreitas-te merged 1 commit into
mainfrom
fix/cp-4628-http-server-instant-body-flags
Jun 29, 2026
Merged

CP-4628 Fix instant body flags#3
sfreitas-te merged 1 commit into
mainfrom
fix/cp-4628-http-server-instant-body-flags

Conversation

@sfreitas-te

@sfreitas-te sfreitas-te commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix the shorthand CLI flow for tests http-server instant so request body flags are generated from the OpenAPI schema and validated before the request is sent.

Jira

What changed

  • fix folded request-body schema ref parsing in the OpenAPI operation indexer
  • propagate required top-level body fields through composed schemas (allOf)
  • mark required body flags in CLI help output
  • reject missing required body flags locally instead of sending an invalid API request
  • add regression tests for schema parsing, binding generation, and request-body validation

Validation

Fix the shorthand CLI flow for HTTP server instant tests so request
body flags are generated and validated before the API call is sent.

This commit teaches the OpenAPI indexer to resolve folded request
body schema refs, propagates required top-level fields through
composed schemas, and blocks execution when required body flags
are missing.

- Add regression tests for folded schema refs and required flag
  handling
- Mark required request body flags in help output

fix(api): expose instant test request body flags
Resolves: CP-4628
@sfreitas-te
sfreitas-te requested a review from a team as a code owner June 29, 2026 16:13
@sfreitas-te sfreitas-te changed the title CP-4628 Fix http-server instant body flags CP-4628 Fix instant body flags Jun 29, 2026
@sfreitas-te
sfreitas-te merged commit 497c6ec into main Jun 29, 2026
2 checks passed
@sfreitas-te
sfreitas-te deleted the fix/cp-4628-http-server-instant-body-flags branch June 29, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants