Skip to content

Instantly share code, notes, and snippets.

@Slyracoon23
Created May 13, 2023 21:48
Show Gist options
  • Save Slyracoon23/70b16f83ca56a7dbaae1c4887c7e13b3 to your computer and use it in GitHub Desktop.
Save Slyracoon23/70b16f83ca56a7dbaae1c4887c7e13b3 to your computer and use it in GitHub Desktop.
PolygonID Json
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"$metadata": {
"uris": {
"jsonLdContext": "https://raw.githubusercontent.com/YourGithubAccount/your-repo/main/credential-schema/missio-data.jsonld",
"jsonSchema": "https://raw.githubusercontent.com/YourGithubAccount/your-repo/main/credential-schema/missio-data.json"
}
},
"required": [
"@context",
"id",
"type",
"issuanceDate",
"credentialSubject",
"credentialSchema",
"credentialStatus",
"issuer"
],
"properties": {
"@context": {
"type": ["string", "array", "object"]
},
"id": {
"type": "string"
},
"type": {
"type": ["string", "array"],
"items": {
"type": "string"
}
},
"issuer": {
"type": ["string", "object"],
"format": "uri",
"required": ["id"],
"properties": {
"id": {
"type": "string",
"format": "uri"
}
}
},
"issuanceDate": {
"type": "string",
"format": "date-time"
},
"credentialSubject": {
"type": "object",
"required": [
"id",
"entryDate",
"summary",
"critical_analysis",
"evaluation_reason",
"score"
],
"properties": {
"id": {
"type": "string",
"format": "uri"
},
"entryDate": {
"type": "string",
"format": "date"
},
"summary": {
"type": "string"
},
"critical_analysis": {
"type": "string"
},
"evaluation_reason": {
"type": "string"
},
"score": {
"type": "integer"
}
}
},
"credentialSchema": {
"type": "object",
"required": ["id", "type"],
"properties": {
"id": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string"
}
}
},
"credentialStatus": {
"type": "object",
"required": ["id", "type"],
"properties": {
"id": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment