Skip to content

Schema.org type causes issues in the admin #7051

Open
@soyuka

Description

@soyuka
#[ApiResource(
    types: [
        'https://schema.org/Store',
    ],
    operations: [
        new GetCollection(),
        new Get(),
        new Post(),
    ]
)]
#[ORM\Entity]
final class Store
{
    public function __construct(
        #[ORM\Id, ORM\Column]
        public string $id,
        #[ORM\Column, ApiProperty(types: ['https://schema.org/name'])]
        public string $title,
        #[ORM\Column, ApiProperty(types: ['https://schema.org/address'])]
        public ?string $address = null,
        #[ORM\Column, ApiProperty(types: ['https://schema.org/openingHours'])]
        public ?string $openingHours = null,
    ) {
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions