{"record":{"id":"0a3109c38e5fbd0d","repo":"apache/flink","slug":"an-object-must-not-allow-additional-properties-in","errorCode":null,"errorMessage":"An object must not allow additional properties in node: {}","messagePattern":"An object must not allow additional properties 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":272,"sourceCode":"        final Iterator<Map.Entry<String, JsonNode>> fieldIter = props.fields();\n        int i = 0;\n        while (fieldIter.hasNext()) {\n            final Map.Entry<String, JsonNode> subNode = fieldIter.next();\n\n            // set field name\n            names[i] = subNode.getKey();\n\n            // set type\n            types[i] = convertType(location + '/' + subNode.getKey(), subNode.getValue(), root);\n\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","sourceCodeStart":254,"sourceCodeEnd":290,"githubUrl":"https://github.com/apache/flink/blob/2f3c205e9266cb30240eb7f4fdab15cad629a70f/flink-formats/flink-json/src/main/java/org/apache/flink/formats/json/JsonRowSchemaConverter.java#L254-L290","documentation":"Error \"An object must not allow additional properties in node: {}\" thrown in apache/flink.","triggerScenarios":"Triggered at runtime when the operation fails because: An object must not allow additional properties in node: the reported value.","commonSituations":"Commonly caused by misconfiguration, missing dependencies or files, unsupported types or operations, or invalid user input leading to: An object must not allow additional properties in node: the reported value.","solutions":["Address the cause reported by the error message: An object must not allow additional properties 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 (\"An object must not allow additional properties 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"}