Skip to content

There is no PropertyInfo extractor supporting the class #3445

@yapro

Description

@yapro

API Platform version(s) affected: v2.5.4

Description
I try to implementing a custom operation (without specifying an ID). My situation:

Request: {"foo":"1"}
Response: {"bar":"2"}

I have Post request.

  • foo - it`s a first field in my php-object named MyObject
  • bar - it`s a second field in my php-object named MyObject

I try to solve my problem as it is written in the https://api-platform.com/docs/core/dto/#specifying-an-input-or-an-output-data-representation

But, I have problem:

image

How to reproduce
https://github.com/yapro/api-platform-test/commit/bc70662c4f06b7769b781114d1d09031e47bb18f

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