export default {
  name: 'simpleBlock',
  title: 'Simple block',
  type: 'document',
  fields: [
    {
      name: 'title',
      title: 'Title',
      type: 'string'
    },
    {
      name: 'body',
      title: 'Body',
      type: 'array',
      of: [
        {
          type: 'block',
          of: [
            {type: 'image', name: 'image'},
            {type: 'object', name: 'test', fields: [{type: 'string', name: 'mystring'}]}
          ]
        },
        {type: 'image', name: 'image'}
      ]
    }
  ]
}

export default {
  name: 'simpleBlock',
  title: 'Simple block',
  type: 'document',
  fields: [
    {
      name: 'title',
      title: 'Title',
      type: 'string'
    },
    {
      name: 'body',
      title: 'Body',
      type: 'array',
      of: [
        {
          type: 'block',
          marks: {
            annotations: [
              {type: 'object', name: 'link', fields: [{type: 'string', name: 'url'}]},
              {type: 'object', name: 'test', fields: [{type: 'string', name: 'mystring'}]}
            ]
          },
          of: [
            {type: 'image', name: 'image'},
            {type: 'object', name: 'test', fields: [{type: 'string', name: 'mystring'}]}
          ]
        },
        {type: 'image', name: 'image'}
      ]
    }
  ]
}

Tweak simpleBlock schema