Fix serviceProvider patter

This commit is contained in:
Yarmo Mackenbach 2021-04-12 16:15:16 +02:00
parent bb5f3ccea2
commit e52c63e4e0
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1

View file

@ -38,22 +38,20 @@ const pattern = {
uri: (x) => {
return _.isString(x) || _.isNull(x)
},
fetch: (x) => {
return _.isString(x) || _.isNull(x)
request: {
fetcher: _.isString,
access: _.isInteger,
format: _.isInteger,
data: _.isObject,
},
useProxy: _.isBoolean,
format: _.isString,
},
claim: {
fingerprint: (x) => {
return _.isString(x) || _.isNull(x)
},
format: _.isString,
format: _.isInteger,
relation: _.isInteger,
path: _.isArray,
relation: _.isString,
},
customRequestHandler: (x) => {
return _.isFunction(x) || _.isNull(x) || _.isUndefined(x)
},
}