api-platform / admin

A beautiful and fully-featured administration interface builder for hypermedia APIs
https://api-platform.com/docs/admin/
MIT License
481 stars 130 forks source link

InputGuesser no longer displays Autocomplete field for relations #454

Closed Gamesh closed 2 years ago

Gamesh commented 2 years ago

API Platform version(s) affected: 3.1.1

Description
I have a warehouse_part resource which has a place resource as a many:1 relation In previous versions:

<InputGuesser source="place" validate={[required()]}/>

would produce an autocomplete field where i can select a place when creating a new Part entity. But now it's displayed as a TextInput field image Even though the hydra jsonD didn't change:

{
          "@type": "hydra:SupportedProperty",
          "hydra:property": {
            "@id": "#WarehousePart\/place",
            "@type": "rdf:Property",
            "rdfs:label": "place",
            "domain": "#WarehousePart"
          },
          "hydra:title": "place",
          "hydra:required": false,
          "hydra:readable": true,
          "hydra:writeable": true
        },

the same happened for other relations. I checked the upgrade docs but it does not mention any adjustments

Gamesh commented 2 years ago

Nvm it turns out the @ApiResource(input=....) has this odd effect