2023-01-13 05:40:33 +01:00
|
|
|
import define from "../define.js";
|
2022-02-19 06:05:32 +01:00
|
|
|
|
|
|
|
export const meta = {
|
2023-01-13 05:40:33 +01:00
|
|
|
tags: ["non-productive"],
|
2022-06-10 07:25:20 +02:00
|
|
|
|
2023-01-13 05:40:33 +01:00
|
|
|
description: "Endpoint for testing input validation.",
|
2022-06-10 07:25:20 +02:00
|
|
|
|
2022-02-19 06:05:32 +01:00
|
|
|
requireCredential: false,
|
|
|
|
} as const;
|
|
|
|
|
2022-02-20 05:15:40 +01:00
|
|
|
export const paramDef = {
|
2023-01-13 05:40:33 +01:00
|
|
|
type: "object",
|
2022-02-19 06:05:32 +01:00
|
|
|
properties: {
|
2023-01-13 05:40:33 +01:00
|
|
|
required: { type: "boolean" },
|
|
|
|
string: { type: "string" },
|
|
|
|
default: { type: "string", default: "hello" },
|
|
|
|
nullableDefault: { type: "string", nullable: true, default: "hello" },
|
|
|
|
id: { type: "string", format: "misskey:id" },
|
2022-02-19 06:05:32 +01:00
|
|
|
},
|
2023-01-13 05:40:33 +01:00
|
|
|
required: ["required"],
|
2022-02-19 06:05:32 +01:00
|
|
|
} as const;
|
|
|
|
|
|
|
|
export default define(meta, paramDef, async (ps, me) => {
|
|
|
|
return ps;
|
|
|
|
});
|