feat(api): complete Stage 3 OpenAPI contract and generation source (CYN-70) - #47
Merged
Merged
Conversation
…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
temporarily deployed
to
feat/cyn-70-stage3-openapi-contract - cynara-api PR #47
August 7, 2026 22:34 — with
Render
Destroyed
|
Neon branch ready. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
contracts/openapi.jsonto include the Stage 3 workflow route map (pipeline, journey, and task catalog/lifecycle endpoints) that the exporter previously dropped from the committed contractOpenApiDocumentExporterto map the pipeline/task minimal API modules and bridge routing endpoints so Swashbuckle's document includes them without starting the host[JsonRequired]so request-body schemas declare mandatory fields instead of emptyrequiredarraysOpenApiContractTestswith a Stage 3 route inventory asserting every mutation declares anapplication/jsonrequest body, plus pipeline/task tag coverageTest plan
dotnet cake --target=OpenApiCheckpasses (contract is deterministic)dotnet cake --target=Checkpasses: FormatCheck, Lint, and full test suiteOpenApiSnapshotTests— committed contract matches exporter outputOpenApiContractTests— newStage3Inventory_IsCompleteplus existing document assertionsLinear: