diff --git a/app/serializers/api/v1/project_folder_serializer.rb b/app/serializers/api/v1/project_folder_serializer.rb index 2b87c435e..a78e2a35c 100644 --- a/app/serializers/api/v1/project_folder_serializer.rb +++ b/app/serializers/api/v1/project_folder_serializer.rb @@ -9,6 +9,7 @@ module Api belongs_to :team, serializer: TeamSerializer belongs_to :parent_folder, serializer: ProjectFolderSerializer has_many :projects, serializer: ProjectSerializer + has_many :project_folders, serializer: ProjectFolderSerializer end end end diff --git a/spec/support/api/schemas/project_folders/item.json b/spec/support/api/schemas/project_folders/item.json index 052ab50d2..b06bd1c9b 100644 --- a/spec/support/api/schemas/project_folders/item.json +++ b/spec/support/api/schemas/project_folders/item.json @@ -31,6 +31,9 @@ }, "projects": { "type": "object" + }, + "project_folders": { + "type": "object" } }, "additionalProperties": false,