Skip to content

Commit

Permalink
added published files in /specs, /bibxml, and /schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
OIDF-automation committed Feb 5, 2025
1 parent f3c64be commit cf2cf8f
Show file tree
Hide file tree
Showing 2,319 changed files with 4,940,279 additions and 0 deletions.
93 changes: 93 additions & 0 deletions sync/schemas/claims_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://openid.net/schemas/verified_claims-12.json",
"definitions": {
"ISO_country_code_type": {
"type": "string",
"pattern": "^[a-zA-Z]{2}[a-zA-Z]?$"
},
"ICAO_nationalities_type": {
"type": "string",
"pattern": "^[a-zA-Z]{2}[a-zA-Z]?$"
},
"E.164_type": {
"type": "string",
"pattern": "^[+]?([0-9]{5,15})$"
},
"phone_number_type": {
"type": "string",
"pattern": "^[+]?([0-9]{5,15})(;ext[0-9]{0,9})?$"
},
"email_type": {
"type": "string",
"pattern": "^[^@]{1,}@([^@.])+([.][^@]{1,})+$"
},
"birthdate_type": {
"type": "string",
"pattern": "^[0-9]{4}-[01][0-9]-[0-3][0-9]$"
},
"locale_type": {
"type": "string",
"pattern": "^[a-zA-Z]{2}[-_][A-Z]{2}[a-zA-Z]?$"
},
"claims_type": {
"type": "object",
"minProperties": 1,
"properties": {
"sub": { "type": "string" },
"name": { "type": "string" },
"given_name": { "type": "string" },
"family_name": { "type": "string" },
"middle_name": { "type": "string" },
"preferred_username": { "type": "string" },
"profile": { "type": "string" },
"picture": { "type": "string" },
"website": { "type": "string" },
"email": { "$ref": "#/definitions/email_type" },
"email_verified": { "type": "boolean" },
"gender": { "type": "string" },
"birthdate": { "$ref": "#/definitions/birthdate_type" },
"zoneinfo": { "type": "string" },
"locale": { "$ref": "#/definitions/locale_type" },
"phone_number": { "$ref": "#/definitions/phone_number_type" },
"phone_number_verified": { "type": "boolean" },
"updated_at": { "type": "number" },
"address": {
"type": "object",
"minProperties": 1,
"properties": {
"formatted": { "type": "string" },
"street_address": { "type": "string" },
"locality": { "type": "string" },
"region": { "type": "string" },
"postal-code": { "type": "string" },
"country": { "type": "string" },
"country_code": { "$ref": "#/definitions/ISO_country_code_type" }
}
},
"place_of_birth": {
"type": "object",
"minProperties": 1,
"properties": {
"country": { "$ref": "#/definitions/ISO_country_code_type" },
"region": { "type": "string" },
"locality": { "type": "string" }
}
},
"nationalities": {
"type": "array",
"minItems": 1,
"uniqueItems": true,
"items": { "$ref": "#/definitions/ICAO_nationalities_type" }
},
"birth_family_name": { "type": "string" },
"birth_given_name": { "type": "string" },
"birth_middle_name": { "type": "string" },
"salutation": { "type": "string" },
"title": { "type": "string" },
"msisdn": { "$ref": "#/definitions/E.164_type" },
"also_known_as": { "type": "string" }
}
}
}
}
282 changes: 282 additions & 0 deletions sync/schemas/verified_claims-09.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,282 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://openid.net/schemas/verified_claims-09.json",
"definitions": {
"date_type": {
"type": "string",
"pattern": "^(?:(?:(?:(?:(?:[1-9]\\d)(?:0[48]|[2468][048]|[13579][26])|(?:(?:[2468][048]|[13579][26])00))(\\/|-|\\.)(?:0?2\\1(?:29)))|(?:(?:[1-9]\\d{3})(\\/|-|\\.)(?:(?:(?:0?[13578]|1[02])\\2(?:31))|(?:(?:0?[13-9]|1[0-2])\\2(?:29|30))|(?:(?:0?[1-9])|(?:1[0-2]))\\2(?:0?[1-9]|1\\d|2[0-8])))))$"
},
"time_type": {
"type": "string",
"pattern": "^(?:[\\+-]?\\d{4}(?!\\d{2}\\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\\1(?:[12]\\d|0[1-9]|3[01]))?|W(?:[0-4]\\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\\d|[12]\\d{2}|3(?:[0-5]\\d|6[1-6])))(?:[T\\s](?:(?:(?:[01]\\d|2[0-3])(?:(:?)[0-5]\\d)?|24\\:?00)(?:[\\.,]\\d+(?!:))?)?(?:\\2[0-5]\\d(?:[\\.,]\\d+)?)?(?:[zZ]|(?:[\\+-])(?:[01]\\d|2[0-3]):?(?:[0-5]\\d)?)?)?)?$"
},
"evidence": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"qes",
"id_document",
"utility_bill"
]
}
},
"required": [
"type"
],
"allOf": [
{
"if": {
"properties": {
"type": {
"value": "qes"
}
}
},
"then": {
"properties": {
"issuer": {
"type": "string"
},
"serial_number": {
"type": "string"
},
"created_at": {
"$ref": "#/definitions/date_type"
}
}
},
"else": {
}
},
{
"if": {
"properties": {
"type": {
"value": "id_document"
}
}
},
"then": {
"properties": {
"method": {
"type": "string"
},
"verifier": {
"type": "object",
"properties": {
"organization": {
"type": "string"
},
"txn": {
"type": "string"
}
}
},
"time": {
"$ref": "#/definitions/time_type"
},
"document": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"number": {
"type": "string"
},
"issuer": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"country": {
"type": "string"
}
}
},
"date_of_issuance": {
"$ref": "#/definitions/date_type"
},
"date_of_expiry": {
"$ref": "#/definitions/date_type"
}
}
}
}
},
"else": {
}
},
{
"if": {
"properties": {
"type": {
"value": "utility_bill"
}
}
},
"then": {
"properties": {
"provider": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"formatted": {
"type": "string"
},
"street_address": {
"type": "string"
},
"locality": {
"type": "string"
},
"region": {
"type": "string"
},
"postal_code": {
"type": "string"
},
"country": {
"type": "string"
}
}
},
"date": {
"$ref": "#/definitions/date_type"
}
}
},
"else": {
}
}
]
},
"verified_claims_def": {
"type": "object",
"properties": {
"verification": {
"type": "object",
"properties": {
"trust_framework": {
"type": "string"
},
"time": {
"$ref": "#/definitions/time_type"
},
"verification_process": {
"type": "string"
},
"evidence": {
"type": "array",
"minItems": 1,
"items": {
"oneOf": [
{
"$ref": "#/definitions/evidence"
}
]
}
}
},
"required": [
"trust_framework"
],
"additionalProperties": false
},
"claims": {
"type": "object",
"minProperties": 1
}
},
"required": [
"verification",
"claims"
],
"additionalProperties": false
},
"aggregated_claims": {
"properties": {
"JWT": {
"type": "string"
}
},
"required": [
"JWT"
]
},
"distributed_claims": {
"properties": {
"endpoint": {
"type": "string"
},
"access_token": {
"type": "string"
}
},
"required": [
"endpoint",
"access_token"
]
},
"_claim_sources": {
"anyOf": [
{
"$ref": "#/definitions/aggregated_claims"
},
{
"$ref": "#/definitions/distributed_claims"
}
]
}
},
"properties": {
"verified_claims": {
"anyOf": [
{
"$ref": "#/definitions/verified_claims_def"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/verified_claims_def"
}
}
]
},
"_claim_names": {
"type": "object",
"properties": {
"verified_claims": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"type": [
"string",
"array"
]
}
}
},
"_claim_sources": {
"type": "object",
"properties": {
},
"additionalProperties": {
"$ref": "#/definitions/_claim_sources"
}
}
}
}
Loading

0 comments on commit cf2cf8f

Please sign in to comment.