Skip to content

Commit 0c8cc8e

Browse files
committed
fix(templates): correct swagger annotation for is_template query param
The description said "returns only template projects" but the actual behavior matches is_archived: it includes templates alongside normal projects when set to true.
1 parent 3061b81 commit 0c8cc8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/models/project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ var FavoritesPseudoProject = Project{
171171
// @Param per_page query int false "The maximum number of items per page. Note this parameter is limited by the configured maximum of items per page."
172172
// @Param s query string false "Search projects by title."
173173
// @Param is_archived query bool false "If true, also returns all archived projects."
174-
// @Param is_template query bool false "If true, returns only template projects. If false (default), excludes templates."
174+
// @Param is_template query bool false "If true, also returns all template projects."
175175
// @Param expand query string false "If set to `permissions`, Vikunja will return the max permission the current user has on this project. You can currently only set this to `permissions`."
176176
// @Security JWTKeyAuth
177177
// @Success 200 {array} models.Project "The projects"

0 commit comments

Comments
 (0)