Commit 0e193ba6 authored by nanahira's avatar nanahira

fix

parent 067e3307
......@@ -10,22 +10,16 @@ import { SRVProRoomInfo } from './def/srvpro';
import { Selection } from './def/selection';
import { DefineSchema, RegisterSchema } from 'schemastery-gen';
const credentialsSchema = Schema.object(
{
accessKeyId: Schema.string().required(),
secretAccessKey: Schema.string().required(),
},
true,
);
export const s3Schema = Schema.object(
{
region: Schema.string().default('none'),
endpoint: Schema.string(),
credentials: credentialsSchema,
},
true,
);
const credentialsSchema = Schema.object({
accessKeyId: Schema.string().required(),
secretAccessKey: Schema.string().required(),
});
export const s3Schema = Schema.object({
region: Schema.string().default('none'),
endpoint: Schema.string(),
credentials: credentialsSchema,
});
@RegisterSchema({ desc: '发送卡组的置' })
export class DeckFetchConfig {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment