Skip to content

Commit fa008e9

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 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)",
@@ -381,7 +381,7 @@
381381
"proxy": {
382382
"title": "Non-empty list of interfaces defining the proxy class",
383383
"type": "array",
384-
"default": [],
384+
"minItems": 1,
385385
"items": {
386386
"title": "Fully-qualified name of the interface defining the proxy class",
387387
"$ref": "#/$defs/className"

0 commit comments

Comments
 (0)