refactor: fix types
This commit is contained in:
@@ -27,7 +27,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||
return {
|
||||
params: Object.entries(ep.params.properties ?? {}).map(([k, v]) => ({
|
||||
name: k,
|
||||
type: v.type.charAt(0).toUpperCase() + v.type.slice(1),
|
||||
type: v.type ? v.type.charAt(0).toUpperCase() + v.type.slice(1) : 'string',
|
||||
})),
|
||||
};
|
||||
});
|
||||
|
Reference in New Issue
Block a user