Skip to content

Register bots create/delete in the OpenAPI - #103

Merged
popen2 merged 1 commit into
mainfrom
fix-bots-openapi-paths
May 29, 2026
Merged

popen2 merged 1 commit into
mainfrom
fix-bots-openapi-paths

Conversation

@popen2

@popen2 popen2 commented May 29, 2026

Copy link
Copy Markdown
Member

The bots OpenApi derive only listed paths(get_all, get_one, update), so the POST /bots (createBot) and DELETE /bots/{id} (deleteBot) operations — and the NewBot request-body schema — were missing from the generated openapi.yaml, and thus from the generated JS SDK (@platzio/sdk).

This regressed the frontend's bot-creation form, which imports NewBot from @platzio/sdk. Peer collections (secrets, envs) already register the full get_all, get_one, create, update, delete set; this brings bots in line.

Verified locally: platz-api openapi schema now emits NewBot and the createBot/deleteBot operations; the component-schema set is otherwise unchanged from v0.7.0-beta.2 (only NewBot added, nothing dropped).

Required to cut v0.7.0-beta.4.

The bots OpenApi derive only listed paths(get_all, get_one, update), so
the POST /bots (createBot) and DELETE /bots/{id} (deleteBot) operations
— and the NewBot request-body schema — were missing from the generated
openapi.yaml, and thus from the generated JS SDK. This regressed the
frontend's bot-creation form, which imports NewBot from @platzio/sdk.

Peer collections (secrets, envs) already register the full set; bring
bots in line.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@popen2
popen2 merged commit 0bcaf14 into main May 29, 2026
6 checks passed
@popen2
popen2 deleted the fix-bots-openapi-paths branch May 29, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant