Skip to content

[Template] Add automated CommonGrants contract validation to the API template repositories #1239

Open

Description

@SnowboardTechie

Summary

ADR 0029 (#1089) lists "a generated OpenAPI document and automated CommonGrants contract validation" in the support contract for each standalone API template. No template repository runs that validation today, and none can get a meaningful result from it yet:

common-grants/cg-api-template-hono ships without a checker job (#1152). This issue owns automated contract validation for all three templates, and takes it out of the monorepo-removal gate: #1186 proceeds once the Express (#332) and FastAPI (#1183) repositories are verified against the rest of the support contract (named owner, SDK request and response validation, generated OpenAPI, tests against the supported SDK range). The checker work lands here once #735 and #1192 make its results meaningful.

The check runs in CI only. It must not add @common-grants/cli or its TypeSpec dependency graph to the template's runtime or development dependencies, because those ship into every project created from the template.

Acceptance criteria

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciIssue or PR related to CI/CD workflowstemplateIssue or PR related to CommonGrants templates

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions