I am using standalone actions in my project as it is quite large and controller files do not cut it for me.
However when I use this hook to generate swagger.json I get the below error for my routes;
No tag for this identity ''
I then cannot see any tags on my routes and the generated swagger.json just lists all my routes.
I have looked at your implementation and you seem to be trying to match tags to controller identities. For cases like mine that use standalone actions can you pretty please provide an override so we can configure tags directly in the route if necessary?
Something like the below;
// Block and unblock a user account
'PUT /api/v1/admin/block-user/:userId': {
action: 'admin/users/block-user-with-id',
swagger: {
summary: 'Block/Unblock a user\'s account',
description: 'This is to enable an admin block or unblock a user',
body: {
action: { type: 'string', description: '"block" to block and "unblock" to unblock' },
},
tags: [{name: 'Admin'}]
}
},
I am using standalone actions in my project as it is quite large and controller files do not cut it for me.
However when I use this hook to generate swagger.json I get the below error for my routes;
No tag for this identity ''
I then cannot see any tags on my routes and the generated swagger.json just lists all my routes.
I have looked at your implementation and you seem to be trying to match tags to controller identities. For cases like mine that use standalone actions can you pretty please provide an override so we can configure tags directly in the route if necessary?
Something like the below;
Thanks!!!