@cef-ebsi/vcdm1.1-idunion-odi-schema v1.0.0
@cef-ebsi/vcdm1.1-idunion-odi-schema
Organization ID (ODI)
Defines schema for an organization ID document
The schema is published to the Trusted Schemas Registry with the IDs:
0xd53bf237f3b24b5f4aa5ea8a2c7b87b8952a97ab8c0c033b30a3f9843a8f3add
(hexadecimal)zFMNrfecxyCEaLgpusf9CP5aq651BpWUV4BM9x8KXxzNY
(multibase base58btc)
Table of Contents
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Organization ID (ODI)",
"description": "Defines schema for an organization ID document",
"type": "object",
"allOf": [
{
"$ref": "node_modules/@cef-ebsi/vcdm1.1-attestation-schema/schema.json"
},
{
"properties": {
"credentialSubject": {
"description": "Defines information about the subject that is described by the Verifiable ID",
"type": "object",
"properties": {
"id": {
"description": "Defines a unique identifier of the organization for which the ODI is issued (e.g. DID-subject)",
"type": "string"
},
"legalName": {
"title": "Legal Name",
"description": "Legal name of the organization the ODI is issued to",
"type": "string"
},
"legalForm": {
"title": "Legal Form",
"description": "The legal form associated to the organization",
"type": "string"
},
"issuingAuthorityName": {
"title": "Issuing authority name",
"description": "Legal name of the organization that issued the ODI",
"type": "string"
},
"issuingCountry": {
"title": "Issuing country",
"description": "An Alpha-2 country code as defined in ISO-3166-1",
"type": "string"
}
},
"required": [
"id",
"legalName",
"legalForm",
"issuingAuthorityName",
"issuingCountry"
]
}
}
}
]
}
Installation
# with npm
npm add @cef-ebsi/vcdm1.1-idunion-odi-schema@1.0.0
# with Yarn
yarn add @cef-ebsi/vcdm1.1-idunion-odi-schema@1.0.0
# with pnpm
pnpm add @cef-ebsi/vcdm1.1-idunion-odi-schema@1.0.0
Usage
The package exports the schema and its metadata as JavaScript objects:
import { schema, metadata } from "@cef-ebsi/vcdm1.1-idunion-odi-schema";
// you can now use the schema and metadata
In addition, the package exports a TypeScript type corresponding to the schema:
import type { OrganizationIDODI } from "@cef-ebsi/vcdm1.1-idunion-odi-schema";
License
Copyright (c) 2019 European Commission Licensed under the EUPL, Version 1.2 or - as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence"); You may not use this work except in compliance with the Licence. You may obtain a copy of the Licence at:
Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licence for the specific language governing permissions and limitations under the Licence.
10 months ago