hippofish/packages/backend/src/server/api/endpoints/test.ts
ThatOneCalculator abf47e54f3
clean up w/ rome
2023-01-16 11:19:20 -08:00

25 lines
590 B
TypeScript

import define from "../define.js";
export const meta = {
tags: ["non-productive"],
description: "Endpoint for testing input validation.",
requireCredential: false,
} as const;
export const paramDef = {
type: "object",
properties: {
required: { type: "boolean" },
string: { type: "string" },
default: { type: "string", default: "hello" },
nullableDefault: { type: "string", nullable: true, default: "hello" },
id: { type: "string", format: "misskey:id" },
},
required: ["required"],
} as const;
export default define(meta, paramDef, async (ps, me) => {
return ps;
});