Skip to content

feat(api): complete Stage 3 OpenAPI contract and generation source (CYN-70) - #47

Merged
SiddharthaGF merged 2 commits into
mainfrom
feat/cyn-70-stage3-openapi-contract
Aug 7, 2026
Merged

feat(api): complete Stage 3 OpenAPI contract and generation source (CYN-70)#47
SiddharthaGF merged 2 commits into
mainfrom
feat/cyn-70-stage3-openapi-contract

Conversation

@SiddharthaGF

Copy link
Copy Markdown
Owner

Summary

  • Regenerate contracts/openapi.json to include the Stage 3 workflow route map (pipeline, journey, and task catalog/lifecycle endpoints) that the exporter previously dropped from the committed contract
  • Fix OpenApiDocumentExporter to map the pipeline/task minimal API modules and bridge routing endpoints so Swashbuckle's document includes them without starting the host
  • Annotate Stage 3 request DTOs with [JsonRequired] so request-body schemas declare mandatory fields instead of empty required arrays
  • Extend OpenApiContractTests with a Stage 3 route inventory asserting every mutation declares an application/json request body, plus pipeline/task tag coverage

Test plan

  • dotnet cake --target=OpenApiCheck passes (contract is deterministic)
  • dotnet cake --target=Check passes: FormatCheck, Lint, and full test suite
  • OpenApiSnapshotTests — committed contract matches exporter output
  • OpenApiContractTests — new Stage3Inventory_IsComplete plus existing document assertions
  • Pipeline/task capability enforcement tests pass

Linear:

…YN-70)

Regenerate contracts/openapi.json to cover the workflow pipeline and
clinical task surface that the exporter previously dropped. Wire the
Stage 3 minimal API modules into the exporter's route table so
Swashbuckle's endpoint data source sees them without starting the host.

Annotate the Stage 3 request DTOs with JsonRequired so the committed
contract declares mandatory fields instead of empty required arrays.
Extend the OpenAPI contract tests with a Stage 3 route inventory that
asserts every mutation declares an application/json request body.
Add workflow capability enforcement tests for pipeline advance, complete,
cancel, enter-in-error, and task claim/complete/cancel against the Stage 3
surface, including denied-actor audit emission.
@SiddharthaGF
SiddharthaGF temporarily deployed to feat/cyn-70-stage3-openapi-contract - cynara-api PR #47 August 7, 2026 22:34 — with Render Destroyed
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Neon branch ready.

@SiddharthaGF
SiddharthaGF merged commit 71afea1 into main Aug 7, 2026
5 checks passed
@SiddharthaGF
SiddharthaGF deleted the feat/cyn-70-stage3-openapi-contract branch August 7, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant