Skip to content

feat: generate API types from the OpenAPI description - #6

Merged
EgorMajj merged 2 commits into
mainfrom
chore/openapi-generate
Oct 1, 2026
Merged

EgorMajj merged 2 commits into
mainfrom
chore/openapi-generate

Conversation

@EgorMajj

@EgorMajj EgorMajj commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Adds the same two steps the server SDK uses to stay on the spec:

  • ./sync.sh downloads dist/shieldlabs-api.yaml from shieldlabs-openapi
  • npm run generate writes src/generated/api.ts

CI regenerates the types and fails if the committed file drifted. The hand-written client is unchanged.

sync.sh downloads the current spec. npm run generate rebuilds src/generated/api.ts from that file.
Node.js 20 rejects --experimental-strip-types, so CI on that version exited before writing types.
@EgorMajj
EgorMajj merged commit bdeaeed into main Oct 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant