Skip to content

Commit 61c2ec0

Browse files
committed
Schema fixes based on comments
1 parent d49041e commit 61c2ec0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

substratevm/docs/schemas/reachability-metadata-schema-v1.2.0.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
}
315315
},
316316
"additionalProperties": false,
317-
"required": ["class", "method", "returnType", "parameterTypes"],
317+
"required": ["class", "method"],
318318
"type": "object",
319319
"title": "Java method and function descriptor to be registered for a direct upcall"
320320
},
@@ -334,11 +334,11 @@
334334
"$defs": {
335335
"className": {
336336
"type": "string",
337-
"pattern": "^[a-zA-Z_$][a-zA-Z0-9_$]*(\\.[a-zA-Z_$][a-zA-Z0-9_$]*)*$"
337+
"pattern": "^[^.;\\[/]+(\\.[^.;\\[/]+)*$"
338338
},
339339
"typeName": {
340340
"type": "string",
341-
"pattern": "^[a-zA-Z_$][a-zA-Z0-9_$]*(\\.[a-zA-Z_$][a-zA-Z0-9_$]*)*(\\[\\])*$"
341+
"pattern": "^[^.;\\[/]+(\\.[^.;\\[/]+)*(\\[])*$"
342342
},
343343
"reason": {
344344
"title": "A reason(s) for including this element (e.g., needed for establishing connections, or needed by method X#Y for task Z)",
@@ -379,9 +379,8 @@
379379
"type": "object",
380380
"properties": {
381381
"proxy": {
382-
"title": "Non-empty list of interfaces defining the proxy class",
382+
"title": "A list of interfaces defining the proxy class",
383383
"type": "array",
384-
"default": [],
385384
"items": {
386385
"title": "Fully-qualified name of the interface defining the proxy class",
387386
"$ref": "#/$defs/className"

0 commit comments

Comments
 (0)