schmittjoh / JMSSerializerBundle

Easily serialize, and deserialize data of any complexity (supports XML, JSON, YAML)
http://jmsyst.com/bundles/JMSSerializerBundle
MIT License
1.8k stars 311 forks source link

Enum deserializer #948

Closed VitaliyMinenko closed 3 months ago

VitaliyMinenko commented 4 months ago
Q A
Bug report? no
Feature request? yes

PHP 8.2 Symfony 7

Hello, when i try to deserialize Enum got an Error, haw to work with ENUMS?

Steps required to reproduce the problem

  1. image

  2. image

Expected Result

*Expected for normal deserializing.

Actual Result

image

scyzoryck commented 4 months ago

Hi! Please take a look at docs :) https://github.com/schmittjoh/serializer/blob/bf1105358123d7c02ee6cad08ea33ab535a09d5e/doc/reference/annotations.rst?plain=1#L390