Add support for base64 and hexBinary types
This commit is contained in:
1 parent
a8b7c180f7
commit
079255d7bd
2 files changed
+3
-1
No files matched your search
@@ -51,6 +51,8 @@ function sanitizeParameterValue(parameterValue) {
|
||||
}
|
||||
break;
|
||||
case 'xsd:string':
|
||||
case 'xsd:base64':
|
||||
case 'xsd:hexBinary':
|
||||
if (typeof parameterValue[0] !== 'string') {
|
||||
parameterValue[0] = '' + parameterValue[0];
|
||||
}
|
||||
|
||||
+1
-1
@@ -447,7 +447,7 @@ runVirtualParameters = (sessionContext, provisions, startRevision, endRevision,
|
||||
_returnValue.value[1] = 'xsd:string'
|
||||
|
||||
if not _returnValue.value[0]? or
|
||||
_returnValue.value[1] not in ['xsd:int', 'xsd:unsignedInt', 'xsd:boolean', 'xsd:string', 'xsd:dateTime']
|
||||
_returnValue.value[1] not in ['xsd:int', 'xsd:unsignedInt', 'xsd:boolean', 'xsd:string', 'xsd:dateTime', 'xsd:base64', 'xsd:hexBinary']
|
||||
if counter & 1
|
||||
callback(null, {code: 'script', message: 'Invalid virtual parameter value attribute'})
|
||||
return counter = 0
|
||||
|
||||
Reference in new issue
Block a user