How-to guide·ChecksJava

Get the validation report via the API

Read the validation report of a version or of a failed check-in with filters by stage, rule, severity and object, run the schema check again, and choose how much the instance checks.

For an integration that gates a hand-over on the quality of a file, or shows the findings in its own interface. Every check-in writes a validation report with the findings of each stage, from parsing to geometry (explanation/checking-and-ids#validation); the app shows the same report on the Validation tab of a version (Read the validation report).

Before you start#

  • Read rights on the model, and the version UUID — or, for a check-in that failed and created no version, the UUID of its error.

1. Read the report#

GetValidationReport with version_uuid (or error_uuid for a failed check-in) returns the summary and the report. The filters narrow it down:

Parameter Effect
summary_only Only the summary: stages, statuses, counts per rule.
min_severity Leave out findings below a severity.
stage Only the findings of one stage: upload, parse, schemaCheck, geometry3d, geometry2d or indexing.
rule Only the findings of one rule.
global_id, express_id Only the findings on one object.

Each finding names the rule, the entity, its express id and GlobalId, and a message; the report carries a plain-English explanation of every rule that fired next to its EXPRESS source. The Java SDK has getValidationReport and getValidationReportForError.

2. Run the schema check again#

RunValidationStage with stage: "schemaCheck" evaluates the schema rules again with the instance's current settings. The other stages come from the check-in and cannot be run again.

3. Choose how much is checked#

The instance decides, in its configuration:

YAML#
schema_checking:
  enabled: true
  preset: SCHEMA_CONFORMANCE   # NONE | STRUCTURAL_ONLY | SCHEMA_CONFORMANCE | ALL
  max_findings_per_rule: 100   # examples kept per rule; the counts stay exact

Check#

GetValidationReport with summary_only for a freshly uploaded version lists all six stages with a status.

Since 3.0