# DIDComm Message Types
Basicmessage,
CredentialIssuance,
PresentProof,
Unknown(String),
// Not added
Routing,
Connections,
Notification,
Signature,
ReportProblem,
TrustPing,
DiscoveryFeatures,
Basicmessage:
```
{
"type": "BasicMessage",
"sent_time": "2020-08-31T09:35:55.312Z",
"content": "Some basic message"
}
```
```
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The root schema",
"description": "The root schema comprises the entire JSON document.",
"default": {},
"examples": [
{
"type": "BasicMessage",
"sent_time": "2020-08-31T09:35:55.312Z",
"content": "Some Message."
}
],
"required": [
"type",
"sent_time",
"content"
],
"properties": {
"type": {
"default": "",
"description": "The DIDComm message type.",
"examples": [
"BasicMessage"
],
"title": "The type schema"
},
"sent_time": {
"$id": "#/properties/sent_time",
"type": "string",
"title": "The sent_time schema",
"description": "The UTC time the message was sent.",
"default": "",
"examples": [
"2020-08-31T09:35:55.312Z"
]
},
"content": {
"default": "",
"description": "The message itself.",
"examples": [
"Some Message."
],
"title": "The content schema"
}
},
"additionalProperties": true
}
```
Presentation:
```
{
"type": "Presentation",
"comment": "A presentation",
"presentations_attach": "The presentation"
}
```
```
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The root schema",
"description": "The root schema comprises the entire JSON document.",
"default": {},
"examples": [
{
"type": "Presentation",
"comment": "A presentation",
"presentations_attach": "The presentation"
}
],
"required": [
"type",
"presentations_attach"
],
"properties": {
"type": {
"$id": "#/properties/type",
"type": "string",
"title": "The type schema",
"description": "The DIDComm message type.",
"default": "",
"examples": [
"Presentation"
]
},
"comment": {
"$id": "#/properties/comment",
"type": "string",
"title": "The comment schema",
"description": "A comment to the attached presentation",
"default": "",
"examples": [
"A presentation"
]
},
"presentations_attach": {
"$id": "#/properties/presentations_attach",
"type": "string",
"title": "The presentations_attach schema",
"description": "The presentation.",
"default": "",
"examples": [
"Presentation"
]
}
},
"additionalProperties": true
}
```
CredentialIssuance:
```
{
"type": "Presentation",
"comment": "A presentation",
"presentations_attach": "The presentation"
}
```
```
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The root schema",
"description": "The root schema comprises the entire JSON document.",
"default": {},
"examples": [
{
"type": "Credential",
"comment": "My new driver license",
"credentials_attach": "VC"
}
],
"required": [
"type",
"comment",
"credentials_attach"
],
"properties": {
"type": {
"$id": "#/properties/type",
"type": "string",
"title": "The type schema",
"description": "The DIDComm message type.",
"default": "",
"examples": [
"Credential"
]
},
"comment": {
"$id": "#/properties/comment",
"type": "string",
"title": "The comment schema",
"description": "A to the VC.",
"default": "",
"examples": [
"My new driver license"
]
},
"credentials_attach": {
"$id": "#/properties/credentials_attach",
"type": "string",
"title": "The credentials_attach schema",
"description": "A verifiable credential.",
"default": "",
"examples": [
"VC"
]
}
},
"additionalProperties": true
}
```
Unknown:
//Similiar to basic message, do we need both?
```
{
"type": "unknown",
"string": "Can be anything"
}
```
```
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "http://example.com/example.json",
"type": "object",
"title": "The root schema",
"description": "The root schema comprises the entire JSON document.",
"default": {},
"examples": [
{
"type": "unknown",
"string": ""
}
],
"required": [
"type",
"string"
],
"properties": {
"type": {
"$id": "#/properties/type",
"type": "string",
"title": "The type schema",
"description": "The DIDComm message type.",
"default": "",
"examples": [
"unknown"
]
},
"string": {
"$id": "#/properties/string",
"type": "string",
"title": "The string schema",
"description": "Can be anything.",
"default": "",
"examples": [
""
]
}
},
"additionalProperties": true
}
```