Skip to content

Commit 5b751e6

Browse files
committed
Adding more required fields
1 parent 351ebc3 commit 5b751e6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/reference-manual/native-image/assets/reachability-metadata-schema-v1.2.0.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"items": {
2929
"title": "Elements that should be registered for reflection for a specified type",
3030
"type": "object",
31+
"required": ["type"],
3132
"properties": {
3233
"reason": {
3334
"$ref": "#/$defs/reason"
@@ -227,6 +228,7 @@
227228
}
228229
},
229230
"additionalProperties": false,
231+
"required": ["returnType", "parameterTypes"],
230232
"type": "object",
231233
"title": "Function descriptor to be registered for a downcall"
232234
},
@@ -265,6 +267,7 @@
265267
}
266268
},
267269
"additionalProperties": false,
270+
"required": ["returnType", "parameterTypes"],
268271
"type": "object",
269272
"title": "Function descriptor to be registered for an upcall"
270273
},
@@ -300,7 +303,7 @@
300303
"title": "Memory layout definition (allows canonical layouts; see `java.lang.foreign.Linker`)"
301304
},
302305
"type": "array",
303-
"title": "List of the function descriptor's parameter types "
306+
"title": "List of the function descriptor's parameter types"
304307
},
305308
"options": {
306309
"type": "object",
@@ -311,6 +314,7 @@
311314
}
312315
},
313316
"additionalProperties": false,
317+
"required": ["class", "method", "returnType", "parameterTypes"],
314318
"type": "object",
315319
"title": "Java method and function descriptor to be registered for a direct upcall"
316320
},
@@ -393,15 +397,13 @@
393397
},
394398
"declaringMethod": {
395399
"title": "The method in which the lambda class is defined",
396-
"$ref": "#/$defs/method",
397-
"default": {}
400+
"$ref": "#/$defs/method"
398401
},
399402
"interfaces": {
400403
"title": "Non-empty list of interfaces implemented by the lambda class",
401404
"type": "array",
402405
"items": {
403406
"title": "Fully-qualified name of the interface implemented by the lambda class",
404-
"type": "string",
405407
"$ref": "#/$defs/className"
406408
},
407409
"minItems": 1

0 commit comments

Comments
 (0)