Skip to content

Emit response model defaults #14358

Closed

Description

@ChiragAgg5k

Tracks PR #14357.

Plan

Goal: Emit each response-model property's non-null default in the OpenAPI 3 spec so generated SDK models can fill fields an older server omits (needed for utopia-php/migration reading 1.6–1.9 sources with sdk-for-php 28+ / 30.2).

What changes:

  • src/Appwrite/SDK/Specification/Format/OpenAPI3.php — scalar / scalar-array / json properties with a default emit it ([] → {}); $ref / oneOf / model arrays stay without a default.
  • tests/unit/SDK/Specification/FormatTest.php — testModelPropertiesEmitTheirDefaults (team.name → '', team.total → 0, team.prefs no default).

Remaining steps:

Done when:

Activity

  1. self-assigned this
    on Oct 12, 2026
  2. added
    product / migrations
    on Oct 12, 2026
  3. ChiragAgg5k commented on Oct 14, 2026

    @ChiragAgg5k
    MemberAuthor

    Released in Appwrite 2.5.0 (includes #14357).

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

Metadata

Metadata

Assignees

Labels

product / migrations

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions