forked from Mirrors/doipjs
Fix serviceProvider patter
This commit is contained in:
parent
bb5f3ccea2
commit
e52c63e4e0
1 changed files with 7 additions and 9 deletions
|
@ -38,22 +38,20 @@ const pattern = {
|
||||||
uri: (x) => {
|
uri: (x) => {
|
||||||
return _.isString(x) || _.isNull(x)
|
return _.isString(x) || _.isNull(x)
|
||||||
},
|
},
|
||||||
fetch: (x) => {
|
request: {
|
||||||
return _.isString(x) || _.isNull(x)
|
fetcher: _.isString,
|
||||||
|
access: _.isInteger,
|
||||||
|
format: _.isInteger,
|
||||||
|
data: _.isObject,
|
||||||
},
|
},
|
||||||
useProxy: _.isBoolean,
|
|
||||||
format: _.isString,
|
|
||||||
},
|
},
|
||||||
claim: {
|
claim: {
|
||||||
fingerprint: (x) => {
|
fingerprint: (x) => {
|
||||||
return _.isString(x) || _.isNull(x)
|
return _.isString(x) || _.isNull(x)
|
||||||
},
|
},
|
||||||
format: _.isString,
|
format: _.isInteger,
|
||||||
|
relation: _.isInteger,
|
||||||
path: _.isArray,
|
path: _.isArray,
|
||||||
relation: _.isString,
|
|
||||||
},
|
|
||||||
customRequestHandler: (x) => {
|
|
||||||
return _.isFunction(x) || _.isNull(x) || _.isUndefined(x)
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue