Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions Common/AttachmentRef.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
"description": "Link to the attachment media/content",
"type": "string",
"format": "uri"
},
"@referredType": {
"type": "string",
"description": "The actual type of the target instance when needed for disambiguation."
}
},
"allOf": [
Expand Down
68 changes: 17 additions & 51 deletions Common/AttachmentRefOrValue.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,63 +4,29 @@
"title": "AttachmentRefOrValue",
"definitions": {
"AttachmentRefOrValue": {
"type": "object",
"discriminator": "isRef",
"$id": "#AttachmentRefOrValue",
"description": "An attachment by value or by reference.",
"type": "object",
"properties": {
"@referredType": {
"type": "string",
"description": "The actual type of the target instance when needed for disambiguation."
},
"description": {
"type": "string",
"description": "A narrative text describing the content of the attachment"
},
"href": {
"type": "string",
"description": "URI for this Attachment"
},
"id": {
"type": "string",
"description": "Unique identifier for this particular attachment"
},
"url": {
"type": "string",
"description": "Uniform Resource Locator, is a web page address (a subset of URI)"
},
"name": {
"type": "string",
"description": "The name of the attachment"
},
"attachmentType": {
"type": "string",
"description": "Attachment type such as video, picture"
},
"mimeType": {
"type": "string",
"description": "Attachment mime type such as extension file for video, picture and document"
},
"isRef": {
"type": "boolean",
"default": true
},
"content": {
"$ref": "ContentType.schema.json#/definitions/ContentType",
"description": "The file itself when provided."
},
"size": {
"$ref": "Quantity.schema.json#/definitions/Quantity",
"description": "The size of the attachment."
},
"validFor": {
"$ref": "TimePeriod.schema.json#/definitions/TimePeriod",
"description": "The period of time for which the attachment is valid"
}
"isRef": {
"type": "boolean",
"default": true

}
},
"required": [
"role"
],
"allOf": [
{
"$ref": "Entity.schema.json#/Entity"
"$ref": "AttachmentRef.schema.json#AttachmentRef"
},
{
"$ref": "Attachment.schema.json#Attachment"
}

]
}
}
}
}