зеркало из https://github.com/mozilla/fxa.git
fix(auth-server): fix incorrect response validation on subscription upgrade route
fixes #5414
This commit is contained in:
Родитель
3d24158935
Коммит
5578ac3069
|
@ -1159,7 +1159,7 @@ const directRoutes = (
|
|||
response: {
|
||||
schema: isA
|
||||
.array()
|
||||
.items(validators.subscriptionsSubscriptionValidator),
|
||||
.items(validators.subscriptionsSubscriptionSupportValidator),
|
||||
},
|
||||
validate: {
|
||||
query: {
|
||||
|
@ -1180,11 +1180,6 @@ const directRoutes = (
|
|||
payload: false,
|
||||
strategy: 'oauthToken',
|
||||
},
|
||||
response: {
|
||||
schema: isA
|
||||
.array()
|
||||
.items(validators.subscriptionsSubscriptionSupportValidator),
|
||||
},
|
||||
validate: {
|
||||
params: {
|
||||
subscriptionId: validators.subscriptionsSubscriptionId.required(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче