Skip to content

Serialization context is ignored when building JsonSchema #3146

Description

@bpiwowar

Unless I am wrong, when an ApiResource field can be serialized within different context, the context is ignored - so the second time a schema is generated, the previous definition is taken into account.

For instance, in

/** 
   ...
   @Groups({"g1", "g2"})
*/
public $myfield;

The schema definition will be corrected for the first serialization group used, but not for the second.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions