swaggo param enums

Just learned that you can describe a param in swag with enums!

// @Param slot path string true "Slot Name" Enums(helmet,armor, backpack, weapon_main, weapon_secondary)

Which will render like this

Pretty dope

Subscribe to Openbracket

Sign up now to get access to the library of members-only issues.
Jamie Larson
Subscribe