The model version is set correctly as a literal in the Python generated classes, e.g: https://github.com/statisticsnorway/ssb-datadoc-model/blob/main/generated/python/datadoc_model/datadoc_model/model.py#L162 However, the corresponding Java version is an Object, not a constant: https://github.com/statisticsnorway/ssb-datadoc-model/blob/main/generated/java/datadoc-model/src/main/java/no/ssb/dapla/metadata/PseudonymizationMetadata.java#L43 So there is no way to tell which schema version the Java object is generated from.