mirror of
https://github.com/strapi/strapi.git
synced 2025-07-05 16:12:18 +00:00
41 lines
773 B
JavaScript
41 lines
773 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
securitySchemes: {
|
|
bearerAuth: {
|
|
type: 'http',
|
|
scheme: 'bearer',
|
|
bearerFormat: 'JWT',
|
|
},
|
|
},
|
|
schemas: {
|
|
Error: {
|
|
type: 'object',
|
|
required: ['error'],
|
|
properties: {
|
|
data: {
|
|
nullable: true,
|
|
oneOf: [{ type: 'object' }, { type: 'array', items: { type: 'object' } }],
|
|
},
|
|
error: {
|
|
type: 'object',
|
|
properties: {
|
|
status: {
|
|
type: 'integer',
|
|
},
|
|
name: {
|
|
type: 'string',
|
|
},
|
|
message: {
|
|
type: 'string',
|
|
},
|
|
details: {
|
|
type: 'object',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|