From bcddad46f96d4543e4418a272b87a97bf014d9c7 Mon Sep 17 00:00:00 2001 From: Renzo Frigato <rfrigato@stanford.edu> Date: Mon, 27 Apr 2015 11:01:44 +0200 Subject: [PATCH] allow edit of acquisitions and sessions fields acquisitions -> field subject sessions -> field description --- acquisitions.py | 4 ++++ sessions.py | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/acquisitions.py b/acquisitions.py index 4d328099..afb52b7a 100644 --- a/acquisitions.py +++ b/acquisitions.py @@ -24,6 +24,10 @@ ACQUISITION_PUT_SCHEMA = { 'title': 'Notes', 'type': 'string', }, + 'description': { + 'title': 'Description', + 'type': 'string' + }, 'files': { 'title': 'Files', 'type': 'array', diff --git a/sessions.py b/sessions.py index e00ea771..e95cde4f 100644 --- a/sessions.py +++ b/sessions.py @@ -27,6 +27,16 @@ SESSION_PUT_SCHEMA = { 'type': 'string', 'pattern': '^[0-9a-f]{24}$', }, + 'subject': { + 'title': 'Subject', + 'type': 'object', + 'properties': { + 'code': { + 'title': 'Code', + 'type': 'string' + } + } + }, 'files': { 'title': 'Files', 'type': 'array', -- GitLab