Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/monitoring-api-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,23 @@ The React frontend should avoid depending on version-specific raw JDC/tProxy res
If a raw API difference affects data already shown by the dashboard, normalize it in the `sv2-ui` backend or shared monitoring layer first.

If a future image exposes new monitoring data that older images do not have, treat it as an optional feature and render it only for compatible profiles.

## API Type Generation

TypeScript types are **auto-generated from the shared OpenAPI spec** (`shared/openapi.json`), not manually maintained.

### File Structure

| File | Purpose |
|------|---------|
| `src/types/api-generated.ts` | **AUTO-GENERATED** - Types from OpenAPI spec. Do not edit manually. |
| `src/types/api.ts` | Re-exports generated types + manual app-specific types |

### Generating Types

```bash
npm run generate:types
```

Regenerate after updating `shared/openapi.json` from upstream.

Loading
Loading