Skip to content

Conversation

graalvmbot
Copy link
Collaborator

Changes are the following:

  1. Removed all deprecated elements: bundles, jni, serialization. The idea is that this schema should drive users towards the current format, instead of allowing all past formats.
  2. Inlined field and reflection into the document. It is used once now.
  3. Unified conditions, and use the title from the unified definition. No more usages of "$ref": "config-condition-schema-v1.0.0.json",.
  4. Reworded each element that is available to accessible to match the new conditions and API.

To review this PR use:

diff docs/reference-manual/native-image/asset/reachability-metadata-schema-v1.1.0.json docs/reference-manual/native-image/asset/reachability-metadata-schema-v1.2.0.json

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Sep 29, 2025
@graalvmbot graalvmbot force-pushed the vj/GR-68984-ship-metadata-schema branch from 61838d7 to 016dfc2 Compare September 29, 2025 17:06
@graalvmbot graalvmbot changed the title [GR-68984] Fix the reachability-metadata schema and include it with GraalVM. [GR-68984][GR-68266] Fix the reachability-metadata schema and include it with GraalVM. Sep 30, 2025
@graalvmbot graalvmbot changed the title [GR-68984][GR-68266] Fix the reachability-metadata schema and include it with GraalVM. [GR-68984] Fix the reachability-metadata schema and include it with GraalVM. Sep 30, 2025
@graalvmbot graalvmbot force-pushed the vj/GR-68984-ship-metadata-schema branch 13 times, most recently from 793c52d to 5f13ae8 Compare October 6, 2025 06:25
@vjovanov
Copy link
Member

vjovanov commented Oct 6, 2025

@zakkak I have fixed all the issues I could find in the schema. Please have a look and see if you see any outstanding issues.

Copy link
Collaborator

@zakkak zakkak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, other than the minor comments added.

Since you perform pattern matching for Class names and Type names perhaps it would be worth doing the same for field-names and method-names, or is it excessive?

"pattern": "^[^.;\\[/]+(\\.[^.;\\[/]+)*(\\[])*$"
},
"reason": {
"title": "A reason(s) for including this element (e.g., needed for establishing connections, or needed by method X#Y for task Z)",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"title": "A reason(s) for including this element (e.g., needed for establishing connections, or needed by method X#Y for task Z)",
"title": "Reason(s) for including this element (e.g., needed for establishing connections, or needed by method X#Y for task Z)",

"default": {},
"properties": {
"comment": {
"title": "A comment applying to the whole file (e.g., generation date, author, etc.)",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"title": "A comment applying to the whole file (e.g., generation date, author, etc.)",
"title": "Comment(s) applying to the whole file (e.g., generation date, author, etc.)",

@graalvmbot graalvmbot force-pushed the vj/GR-68984-ship-metadata-schema branch 4 times, most recently from 82896c5 to 22f2123 Compare October 6, 2025 19:33
@vjovanov
Copy link
Member

vjovanov commented Oct 6, 2025

@zakkak thanks for the comments, I have integrated all the fixes proposed.

@graalvmbot graalvmbot force-pushed the vj/GR-68984-ship-metadata-schema branch 2 times, most recently from 3a943ec to 594004f Compare October 7, 2025 07:23
Copy link
Collaborator

@zakkak zakkak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @vjovanov

It looks good to me.

@graalvmbot graalvmbot force-pushed the vj/GR-68984-ship-metadata-schema branch from 594004f to 24c97ee Compare October 7, 2025 10:14
zakkak added a commit to zakkak/quarkus that referenced this pull request Oct 7, 2025
The new `reachability-metadata.json` file doesn't allow the exclusion of
resources and uses globs for the inclusion of them.

See:
  * oracle/graal#7487
  * oracle/graal#9048
  * oracle/graal#12255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants