Add support for base64 and hexBinary types

This commit is contained in:
Zaid Abdulla committed 2018-06-04 15:48:52 -07:00
1 parent a8b7c180f7
commit 079255d7bd
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -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
View File
@@ -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