Skip to content
Snippets Groups Projects
Commit 3e9ac810 authored by syuilo's avatar syuilo
Browse files

Merge branch 'develop' of https://github.com/misskey-dev/misskey into develop

parents caadc097 255dc633
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,9 @@ export default define(meta, paramDef, async (ps) => {
const ep = endpoints.find(x => x.name === ps.endpoint);
if (ep == null) return null;
return {
params: Object.entries(ep.meta.params || {}).map(([k, v]) => ({
params: Object.entries(ep.params.properties || {}).map(([k, v]) => ({
name: k,
type: v.validator.name === 'ID' ? 'String' : v.validator.name,
type: v.type.charAt(0).toUpperCase() + v.type.slice(1),
})),
};
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment