api-platform / api-platform/core

Schema.org type causes issues in the admin

オープン
#7,051 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
2.6k
フォーク
980
平均マージ
2日 5時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。