8000 Generating the Normalizer / Denormalizer Class · Issue #42 · api-platform/schema-generator · GitHub
[go: up one dir, main page]

Skip to content
Generating the Normalizer / Denormalizer Class #42
@joelwurtz

Description

@joelwurtz

Since we have all informations about a class and its properties, it should be easy to generate normalizer and a denormalizer compatible with the symfony interface.

I believe the performance of such generated normalizer would be better than using PropertyAccess (as it would plain php object only using simple methods).

However using templates for such generation is really a pain and it would be better to generate an AST which will then be transformed into PHP code.

I have done this in this library (for json schema) https://github.com/jolicode/jane and maybe we can collaborate to use this principle for schema.org model, WDYT ?

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

      0