{"record":{"id":"5411701c7697677f","repo":"apache/flink","slug":"arrays-must-specify-an-items-property-in-node","errorCode":null,"errorMessage":"Arrays must specify an 'items' property in node: {}","messagePattern":"Arrays must specify an 'items' property in node: (.+?)","errorType":"validation","errorClass":"java.lang.IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java","lineNumber":282,"sourceCode":"\n            i++;\n        }\n\n        // validate that object does not contain additional properties\n        if (node.has(ADDITIONAL_PROPERTIES)\n                && node.get(ADDITIONAL_PROPERTIES).isBoolean()\n                && node.get(ADDITIONAL_PROPERTIES).asBoolean()) {\n            throw new IllegalArgumentException(\n                    \"An object must not allow additional properties in node: \" + location);\n        }\n\n        return Types.ROW_NAMED(names, types);\n    }\n\n    private static TypeInformation<?> convertArray(String location, JsonNode node, JsonNode root) {\n        // validate items\n        if (!node.has(ITEMS)) {\n            throw new IllegalArgumentException(\n                    \"Arrays must specify an '\" + ITEMS + \"' property in node: \" + location);\n        }\n        final JsonNode items = node.get(ITEMS);\n\n        // list (translated to object array)\n        if (items.isObject()) {\n            final TypeInformation<?> elementType = convertType(location + '/' + ITEMS, items, root);\n            // result type might either be ObjectArrayTypeInfo or BasicArrayTypeInfo for Strings\n            return Types.OBJECT_ARRAY(elementType);\n        }\n        // tuple (translated to row)\n        else if (items.isArray()) {\n            final TypeInformation<?>[] types = convertTypes(location + '/' + ITEMS, items, root);\n\n            // validate that array does not contain additional items\n            if (node.has(ADDITIONAL_ITEMS)\n                    && node.get(ADDITIONAL_ITEMS).isBoolean()\n                    && node.get(ADDITIONAL_ITEMS).asBoolean()) {","sourceCodeStart":264,"sourceCodeEnd":300,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java#L264-L300","documentation":"Error \"Arrays must specify an 'items' property in node: {}\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: Arrays must specify an 'items' property in node: the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: Arrays must specify an 'items' property in node: the reported value.","solutions":["Address the cause reported by the error message: Arrays must specify an 'items' property in node: the reported value","Verify the inputs, configuration values, and classpath/dependency setup related to this operation, then retry."],"exampleFix":"Correct the condition described (\"Arrays must specify an 'items' property in node: the reported value\") and rerun the job or command.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2f3c205e9266cb30240eb7f4fdab15cad629a70f","analyzedAt":"2026-08-14T08:48:24.518Z","schemaVersion":2},"datasetVersion":"2026-08-14T10:17:34.591Z"}