Appearance
Multi-schema Workspace
Use inputs for monorepos or products that split OpenAPI contracts by service:
ts
export default defineForgeConfig({
inputs: [
{ name: 'users', path: './contracts/users.yaml' },
{ name: 'billing', path: './contracts/billing.yaml' },
],
})Current status:
- single-schema
inputremains the simplest default; archora-forge doctor --json,inspect --json,validate --json,lint --json,check --json,diff --jsonandgenerate --jsonaggregate all configuredinputswhen no schema argument is passed;checkreports per-input schema entries inschemas, including config path, health score, resources, generated/protected file counts, drift count, diagnostics count and failed checks;- top-level
checkJSON still aggregates resources, generated files, protected files, drift, diagnostics and failed checks across all inputs; diffandgenerateinclude per-inputschemasentries plus top-level aggregate file counts;- top-level JSON keeps backward-compatible primary schema fields while
schemascontains per-input detail.
Set a distinct output.generatedDir per input for generated artifacts. generate refuses multi-schema plans that would write the same generated path from more than one input.