Add a test for combinators and pass resolved subschema to createLabel by DrewHoo · Pull Request #2165 · eclipsesource/jsonforms

{
  type: 'object',
  properties: {
    widget: {
      anyOf: [
        {
          title: 'DuaOverride',
          $ref: '#/definitions/Dua',
        },
        {
          title: 'LipaOverride',
          $ref: '#/definitions/Lipa',
        },
      ],
    },
  },
  definitions: {
    Dua: {
      title: 'Dua',
      type: 'object',
      properties: { name: { type: 'string' } },
    },
    Lipa: {
      title: 'Lipa',
      type: 'object',
      properties: { name: { type: 'string' } },
    },
  },
};

DuaOverride and LipaOverride are no longer considered.

We should check both title and use the outer one in case both exist.