Skip to content

We should always capture additional properties #808

@heaths

Description

@heaths

Currently, whether to capture additional properties in a model is up to the TypeSpec. No language currently captures additional properties by default even for extensible enums' base discriminants. This can lead to data loss if a service does not implement PATCH correctly or if they use PUT for updates because added fields will be missing. It should work correctly if PATCH for JSON merge+patch was implemented correctly.

We should consider always capturing additional properties for any model, or at least any DU (polymorphic model).

Metadata

Metadata

Assignees

No one assigned

    Labels

    design-discussionAn area of design currently under discussion and open to team and community feedback.

    Type

    No type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions