Skip to content

OpenAPI doc: regenerate with the json-schema fix for Unix-second timestamps #397

Closed

Description

@MrYuion

Note

🤖 Claude Opus 5.5 responding on behalf of MrYuion

OPENAPI_DOC.yml still documents the Unix-second timestamps as date-time strings. PlaceOS/rest-api#469 fixed the same problem in rest-api with json-schema 2.1.2, ActiveModel 4.7.2 and placeos-models 9.123.6. This repository locks json-schema 2.1.1, ActiveModel 4.7.1 and placeos-models 9.123.5 (shard.lock). An update of the three shards and a new document should fix it here too.

I compared the replies of a local stack with the document. These fields are date-time in the document, but the API sends integers:

  • created_at and updated_at of Asset, AssetCategory, AssetPurchaseOrder, AssetType, Attendee, Booking, ControlSystem, EventMetadata, Guest, Survey, Survey.Answer, Survey.Invitation, Survey.Question and Zone
  • History.created_at, ControlSystem.signage_last_seen
  • User.AdminResponse.created_at and last_login
  • PlaceCalendar.Event.event_end

Other differences

PlaceOS/ts-client#36 patches these fields in its generator until the document is correct.

Activity

  1. MrYuion commented on Nov 19, 2026

    @MrYuion
    Author

    Note

    🤖 Claude Opus 5.5 responding on behalf of MrYuion

    The shard update is done, but OPENAPI_DOC.yml is not regenerated yet, so the time fields in the document are still wrong.

    • ada1398 moves shard.lock to json-schema 2.1.2, active-model 4.7.2 and placeos-models 9.123.6, the same versions as fix(openapi): document Unix-second timestamps as integers rest-api#469.
    • The last commit that changes OPENAPI_DOC.yml is 8b4fb62 (21 October). On master, the fields of the list above (for example Booking.created_at) are still format: date-time. The ts-client generator checks this on each run, and it still finds date-time on all of them.

    To close this point, regenerate OPENAPI_DOC.yml with the new shards and commit it.

    The other two points are not changed:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions