Skip to content

Commit

Permalink
MODEXPW-478 - Add notes field to instance csv file (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
siarhei-charniak authored May 8, 2024
1 parent 2ecd4e5 commit ca92ff2
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
32 changes: 32 additions & 0 deletions schemas/inventory/instanceNoteType.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "An Instance note type",
"InstanceNoteType": {
"type": "object",
"properties": {
"id": {
"description": "unique ID of the Instance note type; a UUID",
"type": "string",
"format": "uuid"
},
"name": {
"type": "string",
"description": "name of the Instance note type"
},
"source": {
"type": "string",
"description": "label indicating where the Instance note type entry originates from, i.e. 'folio' or 'local'"
},
"metadata": {
"type": "object",
"$ref": "../common/metadata.json",
"readonly": true
}
}
},
"additionalProperties": false,
"required": [
"name",
"source"
]
}
26 changes: 26 additions & 0 deletions schemas/inventory/instanceNoteTypeCollection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A collection of Instance note types",
"InstanceNoteTypeCollection": {
"type": "object",
"properties": {
"instanceNoteTypes": {
"description": "List of Instance note types",
"id": "instanceNoteType",
"type": "array",
"items": {
"type": "object",
"$ref": "instanceNoteType.json"
}
},
"totalRecords": {
"description": "Estimated or exact total number of records",
"type": "integer"
}
}
},
"required": [
"instanceNoteTypes",
"totalRecords"
]
}

0 comments on commit ca92ff2

Please sign in to comment.