       images: @array().items([denormalizedArtwork, imageSection])
     @object().meta(
       name: 'ImageCollection'
-      isTypeOf: (data) => data.type is 'image_collection'
+      isTypeOf: (data) -> data.type is 'image_collection'
     ).keys
       type: 'image_collection'
       layout: @string().allow('overflow_fillwidth', 'column_width', null)

denormalizedArtwork = (->
  @object().meta(
    name: 'Artwork'
    isTypeOf: (data) => data.type is 'artwork'
  ).keys
    type: @string().valid('artwork').default('artwork')
    id: @string().allow('', null)

      ]
    @object().meta(
      name: 'ImageSet'
      isTypeOf: (data) -> data.type is 'image_set'
    ).keys
      type: 'image_set'
      title: @string().allow('',null)
