Repository navigation
fix(openapi): document Staff API wire responses - #398
Merged
Merged
Conversation
MrYuion
added a commit
to PlaceOS/ts-client
that referenced
this pull request
Nov 19, 2026
PlaceOS/rest-api#471 and PlaceOS/staff-api#398 regenerated the API documents, so the patches for string fields, missing read-only fields, number enums and the staff-api time fields are gone. - The time fields and the number enums keep their notes: the unit and the name of each number. - The generator accepts `readOnly`, and a 204 next to the success response. The client gives `null` for a 204, so staff.calendars.availability has nullable data. - The fields that refer back to Booking are `json()`, because the schemas cannot have a cycle. - oauth_applications path IDs are integers. The inline enums of the documents are no longer named exports. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #397.
Regenerate the OpenAPI document with the updated JSON Schema and PlaceOS models. The generated output documents all 33 reported Unix-second timestamp fields as integer/Int64 and includes the read-only fields that Booking and Guest serialize.
Declare the calendars availability endpoint’s bodyless 204 for the empty-calendar case alongside the JSON array 200. The controller spec covers the HTTP response and the generated response declarations.