new credential membership
This commit is contained in:
parent
8ee3f561a4
commit
45f30f3664
|
@ -1,2 +1,2 @@
|
||||||
name surnames email typeOfPerson membershipType organisation affiliatedSince
|
firstName lastName email membershipType membershipId affiliatedUntil affiliatedSince typeOfPerson identityDocType identityNumber
|
||||||
Pepe Gómez user1@example.org individual Member Pangea 01-01-2023
|
Pepe Gómez user1@example.org individual 123456 2024-01-01T00:00:00Z 2023-01-01T00:00:00Z natural DNI 12345678A
|
||||||
|
|
|
|
@ -1,61 +1,23 @@
|
||||||
{
|
{
|
||||||
"@context": [
|
"@context": [
|
||||||
"https://www.w3.org/2018/credentials/v1",
|
"https://www.w3.org/2018/credentials/v1",
|
||||||
{
|
"https://idhub.pangea.org/credentials/base/v1",
|
||||||
"individual": "https://schema.org/Person",
|
"https://idhub.pangea.org/credentials/membership-card/v1"
|
||||||
"Member": "https://schema.org/Member",
|
|
||||||
"startDate": "https://schema.org/startDate",
|
|
||||||
"jsonSchema": "https://schema.org/jsonSchema",
|
|
||||||
"$ref": "https://schema.org/jsonSchemaRef",
|
|
||||||
"credentialSchema": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#credentialSchema",
|
|
||||||
"organisation": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#organisation",
|
|
||||||
"membershipType": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#membershipType",
|
|
||||||
"membershipId": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#membershipId",
|
|
||||||
"typeOfPerson": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#typeOfPerson",
|
|
||||||
"identityDocType": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#identityDocType",
|
|
||||||
"identityNumber": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#identityNumber",
|
|
||||||
"name": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#name",
|
|
||||||
"description": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#description",
|
|
||||||
"value": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#value",
|
|
||||||
"lang": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#lang",
|
|
||||||
"surnames": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#surnames",
|
|
||||||
"email": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#email",
|
|
||||||
"affiliatedSince": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#affiliatedSince",
|
|
||||||
"affiliatedUntil": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/contexts/vocab#affiliatedUntil",
|
|
||||||
"issued": "https://ec.europa.eu/digital-building-blocks/wikis/display/EBSIDOC/Verifiable+Attestation#issued",
|
|
||||||
"validFrom": "https://ec.europa.eu/digital-building-blocks/wikis/display/EBSIDOC/Verifiable+Attestation#validFrom",
|
|
||||||
"validUntil": "https://ec.europa.eu/digital-building-blocks/wikis/display/EBSIDOC/Verifiable+Attestation#validUntil"
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"type": [
|
"type": [
|
||||||
"VerifiableCredential",
|
"VerifiableCredential",
|
||||||
"VerifiableAttestation",
|
"VerifiableAttestation",
|
||||||
"MembershipCard"
|
"MembershipCard"
|
||||||
],
|
],
|
||||||
"id": "{{ vc_id }}",
|
"id": "https://idhub.pangea.org/credentials/987654321",
|
||||||
"issuer": {
|
"issuer": {
|
||||||
"id": "{{ issuer_did }}",
|
"id": "did:example:5678",
|
||||||
"name": "Pangea",
|
"name": "Pangea Internet Solidari"
|
||||||
"description": [
|
|
||||||
{
|
|
||||||
"value": "Pangea.org is a service provider leveraging open-source technologies to provide affordable and accessible solutions for social enterprises and solidarity organisations.",
|
|
||||||
"lang": "en"
|
|
||||||
},
|
},
|
||||||
{
|
"issuanceDate": "2023-12-06T19:23:24Z",
|
||||||
"value": "Pangea.org és un proveïdor de serveis que aprofita les tecnologies de codi obert per oferir solucions assequibles i accessibles per a empreses socials i organitzacions solidàries.",
|
"issued": "2023-12-06T19:23:24Z",
|
||||||
"lang": "ca_ES"
|
"validFrom": "2023-12-06T19:23:24Z",
|
||||||
},
|
"validUntil": "2024-12-06T19:23:24Z",
|
||||||
{
|
|
||||||
"value": "Pangea.org es un proveedor de servicios que aprovecha tecnologías de código abierto para proporcionar soluciones asequibles y accesibles para empresas sociales y organizaciones solidarias.",
|
|
||||||
"lang": "es"
|
|
||||||
}
|
|
||||||
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"issuanceDate": "{{ issuance_date }}",
|
|
||||||
"issued": "{{ issuance_date }}",
|
|
||||||
"validFrom": "{{ issuance_date }}",
|
|
||||||
"validUntil": "{{ validUntil }}",
|
|
||||||
"name": [
|
"name": [
|
||||||
{
|
{
|
||||||
"value": "Membership Card",
|
"value": "Membership Card",
|
||||||
|
@ -85,21 +47,21 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"credentialSubject": {
|
"credentialSubject": {
|
||||||
"id": "{{ subject_did }}",
|
"id": "did:example:1234",
|
||||||
|
"firstName": "Joan",
|
||||||
|
"lastName": "Pera",
|
||||||
|
"email": "joan.pera@pangea.org",
|
||||||
|
"typeOfPerson": "natural",
|
||||||
|
"identityDocType": "DNI",
|
||||||
|
"identityNumber": "12345678A",
|
||||||
"organisation": "Pangea",
|
"organisation": "Pangea",
|
||||||
"membershipType": "{{ membershipType }}",
|
"membershipType": "individual",
|
||||||
"membershipId": "{{ vc_id }}",
|
"membershipId": "123456",
|
||||||
"affiliatedSince": "{{ affiliatedSince }}",
|
"affiliatedSince": "2023-01-01T00:00:00Z",
|
||||||
"affiliatedUntil": "{{ affiliatedUntil }}",
|
"affiliatedUntil": "2024-01-01T00:00:00Z"
|
||||||
"typeOfPerson": "{{ typeOfPerson }}",
|
},
|
||||||
"identityDocType": "{{ identityDocType }}",
|
|
||||||
"identityNumber": "{{ identityNumber }}",
|
|
||||||
"name": "{{ first_name }}",
|
|
||||||
"surnames": "{{ last_name }}",
|
|
||||||
"email": "{{ email }}",
|
|
||||||
"credentialSchema": {
|
"credentialSchema": {
|
||||||
"id": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/membership-card-schema.json",
|
"id": "https://idhub.pangea.org/vc_schemas/membership-card.json",
|
||||||
"type": "JsonSchema"
|
"type": "FullJsonSchemaValidator2021"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,17 +1,47 @@
|
||||||
{
|
{
|
||||||
"$id": "https://gitea.pangea.org/trustchain-oc1-orchestral/schemas/membership-card-schema.json",
|
"$id": "https://idhub.pangea.org/vc_schemas/membership-card.json",
|
||||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"name": "MembershipCard",
|
"title": "Membership Card",
|
||||||
"description": "MembershipCard credential using JsonSchema",
|
"description": "The membership card specifies an individual's subscription or enrollment in specific services or benefits issued by an organization.",
|
||||||
|
"name": [
|
||||||
|
{
|
||||||
|
"value": "Membership Card",
|
||||||
|
"lang": "en"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": "Carnet de soci/a",
|
||||||
|
"lang": "ca_ES"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"value": "Carnet de socio/a",
|
||||||
|
"lang": "es"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "https://idhub.pangea.org/vc_schemas/ebsi/attestation.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
"properties": {
|
"properties": {
|
||||||
"credentialSubject": {
|
"credentialSubject": {
|
||||||
|
"description": "Defines additional properties on credentialSubject",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"description": "Defines a unique identifier of the credential subject",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"organisation": {
|
"organisation": {
|
||||||
|
"description": "Organisation the credential subject is affiliated with",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"membershipType": {
|
"membershipType": {
|
||||||
|
"description": "Type of membership",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"membershipId": {
|
||||||
|
"description": "Membership identifier",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"affiliatedSince": {
|
"affiliatedSince": {
|
||||||
|
@ -25,26 +55,23 @@
|
||||||
"typeOfPerson": {
|
"typeOfPerson": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": [
|
"enum": [
|
||||||
"individual",
|
"natural",
|
||||||
"org"
|
"legal"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"identityDocType": {
|
"identityDocType": {
|
||||||
"type": "string",
|
"description": "Type of the Identity Document of the credential subject",
|
||||||
"enum": [
|
"type": "string"
|
||||||
"DNI",
|
|
||||||
"NIF",
|
|
||||||
"NIE",
|
|
||||||
"PASSPORT"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"identityNumber": {
|
"identityNumber": {
|
||||||
|
"description": "Number of the Identity Document of the credential subject",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"name": {
|
"firstName": {
|
||||||
|
"description": "Name of the natural person or name of the legal person (organisation)",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"surnames": {
|
"lastName": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"email": {
|
"email": {
|
||||||
|
@ -53,13 +80,15 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
"id",
|
||||||
"organisation",
|
"organisation",
|
||||||
"affiliatedSince",
|
"affiliatedSince",
|
||||||
"typeOfPerson",
|
"typeOfPerson",
|
||||||
"name",
|
"firstName",
|
||||||
"surnames",
|
|
||||||
"email"
|
"email"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
Loading…
Reference in a new issue