Repository navigation
fix(openapi): align schemas with serialized fields - #471
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 #470.
Regenerate the OpenAPI document with JSON Schema 2.1.3 and the updated PlaceOS models. The document includes response-only fields, typed user metadata, string representations for timezones, URIs and JWT scopes, numeric values for converter-backed enums, and free-form JSON where the wire format allows it.
Parse OAuth application path IDs as Int64 to match the database primary key. The route regression uses an ID above Int32::MAX.
Build and schema audit verified the reported examples, the previous Unix timestamp corrections, and all internal component references.