api-platform / api-platform/core

Schema.org type causes issues in the admin

未關閉
#7,051 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
PHP
星號
2.6k
分支
980
平均合併
2 天 5 小時
30 天內合併 PR
48

描述

```php
#[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,
) {
}
}
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。