From 7fef1a5dee01a975c4a9ddf90109a5c6e3d98732 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard Date: Tue, 3 Dec 2024 16:24:54 +0400 Subject: [PATCH] fix(project-environment): empty position arg defaults to 0 --- internal/client/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/client/model.go b/internal/client/model.go index 98f9f02..5e357d7 100644 --- a/internal/client/model.go +++ b/internal/client/model.go @@ -1150,7 +1150,7 @@ type CreateProjectEnvironmentRequest struct { Name string `json:"name"` Slug string `json:"slug"` ProjectID string `json:"workspaceId"` - Position int64 `json:"position"` + Position int64 `json:"position,omitempty"` } type CreateProjectEnvironmentResponse struct {