changeset 66:98930c9d54fa docrefactor

Use media type
author Chris Cannam
date Wed, 05 Oct 2016 09:42:26 +0100
parents 2f2060509884
children ada4cd9daaba
files schema/feature.json schema/processinput.json
diffstat 2 files changed, 15 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/schema/feature.json	Wed Oct 05 09:38:29 2016 +0100
+++ b/schema/feature.json	Wed Oct 05 09:42:26 2016 +0100
@@ -27,7 +27,10 @@
 		},
                 {
 		    "type": "string",
-                    "pattern": "^[a-zA-Z0-9+/]*=*$"
+                    "media": {
+                        "binaryEncoding": "base64",
+                        "type": "application/octet-stream"
+                    },
 		}
             ]
         }
--- a/schema/processinput.json	Wed Oct 05 09:38:29 2016 +0100
+++ b/schema/processinput.json	Wed Oct 05 09:42:26 2016 +0100
@@ -18,14 +18,17 @@
     "definitions": {
         "serialisedArray": {
             "anyOf": [
-                    {
-			"type": "array",
-			"items": { "type": "number" }
-		    },
-                    {
-		        "type": "string",
-                        "pattern": "^[a-zA-Z0-9+/]*=*$"
-		    }
+                {
+		    "type": "array",
+		    "items": { "type": "number" }
+		},
+                {
+		    "type": "string",
+                    "media": {
+                        "binaryEncoding": "base64",
+                        "type": "application/octet-stream"
+                    }
+		}
             ]
         }
     }