Skip to content

Commit

Permalink
Update ewc-rfc005-issue-legal-person-identification-data.md
Browse files Browse the repository at this point in the history
Corrected attributenames in schema and references JSON-Schema.org
  • Loading branch information
lrsbolagsverket committed Sep 6, 2024
1 parent d484596 commit 215b9be
Showing 1 changed file with 124 additions and 119 deletions.
243 changes: 124 additions & 119 deletions ewc-rfc005-issue-legal-person-identification-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -915,134 +915,138 @@ The attributes are encoded with JSON as specified in RFC 8259[9]
</table>


Schema
Schema as JSON-schema[11]

```json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "EWC - Legal PID",
"description": "Schema for Legal PID - EWC WP3",
"type": "object",
"properties": {
"issuer_name": {
"description": "Name of issuer from the MS that issued the ODI instance",
"type": "string"
},
"issuer_id": {
"description": "ODI Id of the issuing authority. (Business register identifier for BRIS)",
"type": "string"
},
"issuer_country": {
"description": "Alpha-2 country code, as defined in ISO 3166-1, of the issuing country or territory.",
"type": "string",
"minLength": 2,
"maxLength": 2
},
"issuance_date": {
"description": "Date and possibly time of issuance",
"type": "string",
"format": "datetime"
},
"expiry_date": {
"description": "Date and possibly time of ODI expiration",
"format": "datetime"
},
"authentic_source_id": {
"description": "ODI Id of the issuing authority. (Business register identifier for BRIS)",
"type": "string"
},
"authentic_source_name": {
"description": "Name of issuer from the MS that issued the ODI instance",
"type": "string"
},
"credentialSubject": {
"description": "Attributes representing a Legal PID",
"type": "object",
"properties": {
"legal_person_id": {
"description": "Unique id for organisation according to EUID",
"type": "string"
},
"legal_person_name": {
"description": "Legal person name",
"type": "string"
}
},
"required": [
"legal_person_id",
"legal_person_name"
]
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "EWC - Legal PID",
"description": "Schema for Legal PID - EWC WP3",
"type": "object",
"properties": {
"issuing_authority": {
"description": "Name of issuer from the MS that issued the ODI instance",
"type": "string"
},
"issuing_authority_id": {
"description": "ODI Id of the issuing authority. (Business register identifier for BRIS)",
"type": "string"
},
"issuing_country": {
"description": "Alpha-2 country code, as defined in ISO 3166-1, of the issuing country or territory.",
"type": "string",
"minLength": 2,
"maxLength": 2
},
"issuing_jurisdiction": {
"description": "As defined in ISO 3166-2:2020, of the issuing country or territory.",
"type": "string",
"minLength": 2,
"maxLength": 6
},
"issuance_date": {
"description": "Date and possibly time of issuance",
"type": "string",
"format": "datetime"
},
"expiry_date": {
"description": "Date and possibly time of ODI expiration",
"format": "datetime"
},
"authentic_source_id": {
"description": "ODI Id of the issuing authority. (Business register identifier for BRIS)",
"type": "string"
},
"authentic_source_name": {
"description": "Name of issuer from the MS that issued the ODI instance",
"type": "string"
},
"credentialSubject": {
"description": "Attributes representing a Legal PID",
"type": "object",
"properties": {
"legal_person_id": {
"description": "Unique id for organisation according to EUID",
"type": "string"
},
"credentialStatus": {
"description": "Defines suspension and/or revocation details for the issued credential. Further redefined by the type extension",
"type": "object",
"properties": {
"id": {
"description": "Exact identity for the credential status",
"type": "string",
"format": "uri"
},
"type": {
"description": "Defines the revocation type extension",
"type": "string"
}
},
"required": [
"id",
"type"
]
"legal_person_name": {
"description": "Legal person name",
"type": "string"
}
},
"required": [
"legal_person_id",
"legal_person_name"
]
},
"credentialStatus": {
"description": "Defines suspension and/or revocation details for the issued credential. Further redefined by the type extension",
"type": "object",
"properties": {
"id": {
"description": "Exact identity for the credential status",
"type": "string",
"format": "uri"
},
"credentialSchema": {
"description": "One or more schemas that validate the Verifiable Credential.",
"anyOf": [
{
"$ref": "#/$defs/credentialSchema"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/credentialSchema"
}
}
]
"type": {
"description": "Defines the revocation type extension",
"type": "string"
}
},
"required": [
"id",
"type"
]
},
"required": [
"credentialSubject",
"credentialStatus",
"credentialSchema",
"issuer_name",
"issuer_id",
"issuer_country",
"issuance_date",
"expiry_date",
"authentic_source_id",
"authentic_source_name"
],
"$defs": {
"credentialSchema": {
"description": "Contains information about the credential schema on which the issued credential is based",
"type": "object",
"properties": {
"id": {
"description": "References the credential schema stored on the Trusted Schemas Registry (TSR) on which the Verifiable Authorisation is based on",
"type": "string",
"format": "uri"
},
"type": {
"description": "Defines credential schema type",
"type": "string",
"enum": [
"FullJsonSchemaValidator2021"
]
}
},
"required": [
"id",
"type"
]
"credentialSchema": {
"description": "One or more schemas that validate the Verifiable Credential.",
"anyOf": [
{
"$ref": "#/$defs/credentialSchema"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/credentialSchema"
}
}
]
}
},
"required": [
"credentialSubject",
"credentialStatus",
"credentialSchema",
"issuing_authority",
"issuing_authority_id",
"issuer_country",
"issuance_date",
"expiry_date"
],
"$defs": {
"credentialSchema": {
"description": "Contains information about the credential schema on which the issued credential is based",
"type": "object",
"properties": {
"id": {
"description": "References the credential schema stored on the Trusted Schemas Registry (TSR) on which the Verifiable Authorisation is based on",
"type": "string",
"format": "uri"
},
"type": {
"description": "Defines credential schema type",
"type": "string",
"enum": [
"FullJsonSchemaValidator2021"
]
}
},
"required": [
"id",
"type"
]
}
}
}
```
## 5.11 Issuer Authorization Verification
Expand Down Expand Up @@ -1118,6 +1122,7 @@ TDB.
8. eIDAS2, add online resource.
9. The JavaScript Object Notation (JSON) Data Interchange Format [https://datatracker.ietf.org/doc/html/rfc8259](https://datatracker.ietf.org/doc/html/rfc8259)
10. Date and Time on the Internet: Timestamps [https://www.rfc-editor.org/rfc/rfc3339](https://www.rfc-editor.org/rfc/rfc3339)
11. JSON Schema [https://json-schema.org/](https://json-schema.org/)

# Appendix A: Public key resolution

Expand Down

0 comments on commit 215b9be

Please sign in to comment.