mirror of
https://github.com/strapi/strapi.git
synced 2025-10-18 11:32:42 +00:00
Fix invalid openapi schema override
This commit is contained in:
parent
7f1bb7e73f
commit
ff9621a843
@ -48,7 +48,7 @@ module.exports = {
|
|||||||
properties: {
|
properties: {
|
||||||
data: {
|
data: {
|
||||||
nullable: true,
|
nullable: true,
|
||||||
oneOf: [{ type: 'object' }, { type: 'array', items: [] }],
|
oneOf: [{ type: 'object' }, { type: 'array', items: { type: 'object' } }],
|
||||||
},
|
},
|
||||||
error: {
|
error: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
@ -12,8 +12,16 @@ tags:
|
|||||||
url: 'https://docs.strapi.io/developer-docs/latest/plugins/users-permissions.html'
|
url: 'https://docs.strapi.io/developer-docs/latest/plugins/users-permissions.html'
|
||||||
|
|
||||||
paths:
|
paths:
|
||||||
'/connect/(.*)':
|
/connect/{provider}:
|
||||||
get:
|
get:
|
||||||
|
parameters:
|
||||||
|
- name: provider
|
||||||
|
in: path
|
||||||
|
required: true
|
||||||
|
description: Provider name
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
pattern: '.*'
|
||||||
tags:
|
tags:
|
||||||
- Users-Permissions - Auth
|
- Users-Permissions - Auth
|
||||||
summary: Login with a provider
|
summary: Login with a provider
|
||||||
@ -148,7 +156,7 @@ paths:
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
ok:
|
ok:
|
||||||
type: enum
|
type: string
|
||||||
enum: [true]
|
enum: [true]
|
||||||
default:
|
default:
|
||||||
description: Error
|
description: Error
|
||||||
@ -273,7 +281,7 @@ paths:
|
|||||||
email:
|
email:
|
||||||
type: string
|
type: string
|
||||||
sent:
|
sent:
|
||||||
type: enum
|
type: string
|
||||||
enum: [true]
|
enum: [true]
|
||||||
default:
|
default:
|
||||||
description: Error
|
description: Error
|
||||||
@ -381,7 +389,7 @@ paths:
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
ok:
|
ok:
|
||||||
type: enum
|
type: string
|
||||||
enum: [true]
|
enum: [true]
|
||||||
default:
|
default:
|
||||||
description: Error
|
description: Error
|
||||||
@ -456,7 +464,7 @@ paths:
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
ok:
|
ok:
|
||||||
type: enum
|
type: string
|
||||||
enum: [true]
|
enum: [true]
|
||||||
default:
|
default:
|
||||||
description: Error
|
description: Error
|
||||||
@ -485,7 +493,7 @@ paths:
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
ok:
|
ok:
|
||||||
type: enum
|
type: string
|
||||||
enum: [true]
|
enum: [true]
|
||||||
default:
|
default:
|
||||||
description: Error
|
description: Error
|
||||||
@ -779,9 +787,11 @@ components:
|
|||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
createdAt:
|
createdAt:
|
||||||
type: datetime
|
type: string
|
||||||
|
format: date-time
|
||||||
updatedAt:
|
updatedAt:
|
||||||
type: datetime
|
type: string
|
||||||
|
format: date-time
|
||||||
|
|
||||||
Users-Permissions-User:
|
Users-Permissions-User:
|
||||||
type: object
|
type: object
|
||||||
@ -805,10 +815,12 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
example: false
|
example: false
|
||||||
createdAt:
|
createdAt:
|
||||||
type: datetime
|
type: string
|
||||||
|
format: date-time
|
||||||
example: '2022-06-02T08:32:06.258Z'
|
example: '2022-06-02T08:32:06.258Z'
|
||||||
updatedAt:
|
updatedAt:
|
||||||
type: datetime
|
type: string
|
||||||
|
format: date-time
|
||||||
example: '2022-06-02T08:32:06.267Z'
|
example: '2022-06-02T08:32:06.267Z'
|
||||||
|
|
||||||
Users-Permissions-UserRegistration:
|
Users-Permissions-UserRegistration:
|
||||||
@ -839,10 +851,6 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
policy:
|
policy:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
parameters:
|
|
||||||
responses:
|
|
||||||
examples:
|
|
||||||
requestBodies:
|
requestBodies:
|
||||||
Users-Permissions-RoleRequest:
|
Users-Permissions-RoleRequest:
|
||||||
required: true
|
required: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user