public static String schemaIdForPackage(final PackageDeclaration schemaPackage) {
assert schemaPackage != null : "schemaPackage:null";
final JsonSchema jsonSchema = schemaPackage.getAnnotation(JsonSchema.class);
if (jsonSchema != null && jsonSchema.schemaId() != null) {
return jsonSchema.schemaId();
}
return schemaPackage.getQualifiedName();
}
private final String schemaId;