openactive / implementation-tracker

Activation Issue Tracker for OpenActive Implementations
1 stars 2 forks source link

Images must always be of type ImageObject #167

Closed nickevansuk closed 5 years ago

nickevansuk commented 6 years ago

Images must always be of type ImageObject

Not like this:

{
  "@context": "https://www.openactive.io/ns/oa.jsonld",
  "type": "Event",
  "image": [
    "http://lr-media.staging.phoenixdigital.agency/image/1a4e49132ab7f635754c4d1c9d029acb"
  ]
}

Like this:

{
  "@context": "https://www.openactive.io/ns/oa.jsonld",
  "type": "Event",
  "image": [
    {
      "type": "ImageObject",
      "url": "http://lr-media.staging.phoenixdigital.agency/image/1a4e49132ab7f635754c4d1c9d029acb"
    }
  ]
}
nickevansuk commented 6 years ago

Note that this applies to all image objects, including within organizer

nickevansuk commented 6 years ago

Sorry i should have been clearer! All image objects includes logo too (I meant every image should be an ImageObject)...

So

"logo":{
      "type": "ImageObject",
      "url": "https://lr-media.staging.phoenixdigital.agency/view/13462570c717276edddf28d1a0727d89/2018 LETS RIDE LONGBOX RGB LOGO KEYLINE.svg"
    }