We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec69031 commit bfb5fb8Copy full SHA for bfb5fb8
app/samples.py
@@ -100,4 +100,12 @@ def inject_sample_data(json_data: dict) -> dict:
100
print(f"Sample profile input found: {profile}")
101
profile.update(ERIKA_MUSTERMAN_PHOTOID2)
102
print(f"Sample mutated: {profile}")
103
+
104
+ for namespace in ["eu.europa.ec.eudi.pid.1", "org.iso.18013.5.1"]:
105
+ if namespace in data and "nationality" in data[namespace]:
106
+ current_nationality = data[namespace]["nationality"]
107
+ if isinstance(current_nationality, str):
108
+ data[namespace]["nationality"] = [current_nationality]
109
110
111
return data
0 commit comments