text: {
    "ramlVersion": "RAML10",
    "type": "Api",
    "specification": {
      "types": [
        {
          "SimpleType1": {
            "name": "SimpleType1",
            "displayName": "SimpleType1",
            "typePropertyKind": "TYPE_EXPRESSION",
            "type": [
              "object"
            ],
            "properties": {
              "property1": {
                "name": "property1",
                "displayName": "property1",
                "typePropertyKind": "TYPE_EXPRESSION",
                "type": [
                  "string"
                ],
                "required": true,
                "__METADATA__": {
                  "primitiveValuesMeta": {
                    "displayName": {
                      "calculated": true
                    },
                    "required": {
                      "insertedAsDefault": true
                    }
                  }
                },
                "sourceMap": {
                  "path": "apiInvalid.raml"
                }
              },
              "property2": {
                "name": "property2",
                "displayName": "property2",
                "typePropertyKind": "TYPE_EXPRESSION",
                "type": [
                  "string"
                ],
                "required": true,
                "__METADATA__": {
                  "primitiveValuesMeta": {
                    "displayName": {
                      "calculated": true
                    },
                    "required": {
                      "insertedAsDefault": true
                    }
                  }
                },
                "sourceMap": {
                  "path": "apiInvalid.raml"
                }
              }
            },
            "__METADATA__": {
              "primitiveValuesMeta": {
                "displayName": {
                  "calculated": true
                },
                "type": {
                  "insertedAsDefault": true
                }
              }
            },
            "sourceMap": {
              "path": "apiInvalid.raml"
            }
          }
        },
        {
          "SimpleType2": {
            "name": "SimpleType2",
            "displayName": "SimpleType2",
            "typePropertyKind": "TYPE_EXPRESSION",
            "type": [
              "object"
            ],
            "properties": {
              "property3": {
                "name": "property3",
                "displayName": "property3",
                "typePropertyKind": "TYPE_EXPRESSION",
                "type": [
                  "string"
                ],
                "required": true,
                "__METADATA__": {
                  "primitiveValuesMeta": {
                    "displayName": {
                      "calculated": true
                    },
                    "required": {
                      "insertedAsDefault": true
                    }
                  }
                },
                "sourceMap": {
                  "path": "apiInvalid.raml"
                }
              },
              "property4": {
                "name": "property4",
                "displayName": "property4",
                "typePropertyKind": "TYPE_EXPRESSION",
                "type": [
                  "string"
                ],
                "required": true,
                "__METADATA__": {
                  "primitiveValuesMeta": {
                    "displayName": {
                      "calculated": true
                    },
                    "required": {
                      "insertedAsDefault": true
                    }
                  }
                },
                "sourceMap": {
                  "path": "apiInvalid.raml"
                }
              }
            },
            "__METADATA__": {
              "primitiveValuesMeta": {
                "displayName": {
                  "calculated": true
                },
                "type": {
                  "insertedAsDefault": true
                }
              }
            },
            "sourceMap": {
              "path": "apiInvalid.raml"
            }
          }
        },
        {
          "SimpleUnion": {
            "name": "SimpleUnion",
            "displayName": "SimpleUnion",
            "typePropertyKind": "TYPE_EXPRESSION",
            "type": [
              "SimpleType1 | SimpleType2"
            ],
            "__METADATA__": {
              "primitiveValuesMeta": {
                "displayName": {
                  "calculated": true
                }
              }
            },
            "sourceMap": {
              "path": "apiInvalid.raml"
            }
          }
        },
        {
          "TypeWithUnionProps": {
            "name": "TypeWithUnionProps",
            "displayName": "TypeWithUnionProps",
            "typePropertyKind": "TYPE_EXPRESSION",
            "type": [
              "object"
            ],
            "example": {
              "unionArray": [
                {
                  "property1": "val1",
                  "property4": "val2"
                },
                {
                  "property3": "val3",
                  "property4": "val4"
                }
              ]
            },
            "properties": {
              "unionArray": {
                "name": "unionArray",
                "displayName": "unionArray",
                "typePropertyKind": "TYPE_EXPRESSION",
                "type": [
                  "array"
                ],
                "required": true,
                "__METADATA__": {
                  "primitiveValuesMeta": {
                    "displayName": {
                      "calculated": true
                    },
                    "required": {
                      "insertedAsDefault": true
                    }
                  }
                },
                "sourceMap": {
                  "path": "apiInvalid.raml"
                },
                "items": "SimpleUnion"
              }
            },
            "__METADATA__": {
              "primitiveValuesMeta": {
                "displayName": {
                  "calculated": true
                }
              }
            },
            "sourceMap": {
              "path": "apiInvalid.raml"
            },
            "structuredExample": {
              "value": "{\n  \"unionArray\": [\n    {\n      \"property1\": \"val1\",\n      \"property4\": \"val2\"\n    },\n    {\n      \"property3\": \"val3\",\n      \"property4\": \"val4\"\n    }\n  ]\n}",
              "strict": true,
              "name": null,
              "structuredValue": {
                "unionArray": [
                  {
                    "property1": "val1",
                    "property4": "val2"
                  },
                  {
                    "property3": "val3",
                    "property4": "val4"
                  }
                ]
              },
              "sourceMap": {
                "path": "apiInvalid.raml"
              }
            }
          }
        }
      ],
      "title": "API",
      "sourceMap": {
        "path": "apiInvalid.raml"
      }
    },
    "errors": [
      {
        "code": "UNION_TYPE_FAILURE_DETAILS",
        "message": "Union type option does not pass validation (SimpleType1: Required property 'property2' is missing)",
        "path": "apiInvalid.raml",
        "range": {
          "start": {
            "line": 24,
            "column": 10,
            "position": 380
          },
          "end": {
            "line": 25,
            "column": 25,
            "position": 421
          }
        }
      },
      {
        "code": "UNION_TYPE_FAILURE_DETAILS",
        "message": "Union type option does not pass validation (SimpleType2: Required property 'property3' is missing)",
        "path": "apiInvalid.raml",
        "range": {
          "start": {
            "line": 24,
            "column": 10,
            "position": 380
          },
          "end": {
            "line": 25,
            "column": 25,
            "position": 421
          }
        }
      },
      {
        "code": "UNION_TYPE_FAILURE",
        "message": "Union type options do not pass validation",
        "path": "apiInvalid.raml",
        "range": {
          "start": {
            "line": 24,
            "column": 10,
            "position": 380
          },
          "end": {
            "line": 25,
            "column": 25,
            "position": 421
          }
        }
      }
    ]
  }