Explorar o código

restrict syncType values to full/incremental

Brian Gough %!s(int64=9) %!d(string=hai) anos
pai
achega
fe5ba5b619
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      services/clsi/app/coffee/RequestParser.coffee

+ 1 - 0
services/clsi/app/coffee/RequestParser.coffee

@@ -33,6 +33,7 @@ module.exports = RequestParser =
 				type: "string"
 			response.syncType = @_parseAttribute "syncType",
 				compile.options.syncType,
+				validValues: ["full", "incremental"]
 				type: "string"
 			response.syncState = @_parseAttribute "syncState",
 				compile.options.syncState,