From 751b204c25ed48f18f98a409684143e7b17d72fc Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Mon, 5 Feb 2024 09:43:56 +0100 Subject: [PATCH 01/15] Update assets_object.go --- pkg/infra/models/assets_object.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pkg/infra/models/assets_object.go b/pkg/infra/models/assets_object.go index 56b32faf..0b59c6e4 100644 --- a/pkg/infra/models/assets_object.go +++ b/pkg/infra/models/assets_object.go @@ -101,6 +101,28 @@ type ObjectAttributeScheme struct { ObjectAttributeValues []*ObjectTypeAssetAttributeValueScheme `json:"objectAttributeValues,omitempty"` } +type ObjectTypeAttributePayloadScheme struct { + Name string `json:"name,omitempty"` + Label bool `json:"label,omitempty"` + Description string `json:"description,omitempty"` + Type int `json:"type,omitempty"` + DefaultTypeId int `json:defaultTypeId,omitempty"` + TypeValue string `json:"typeValue,omitempty"` + TypeValueMulti []string `json:"typeValueMulti,omitempty"` + AdditionalValue string `json:"additionalValue,omitempty"` + MinimumCardinality int `json:"minimumCardinality,omitempty"` + MaximumCardinality int `json:"maximumCardinality,omitempty"` + Suffix string `json:"suffix,omitempty"` + IncludeChildObjectTypes bool `json:"includeChildObjectTypes,omitempty"` + Hidden bool `json:"hidden,omitempty"` + UniqueAttribute bool `json:"uniqueAttribute,omitempty"` + Summable bool `json:"summable,omitempty"` + RegexValidation string `json:"regexValidation,omitempty"` + QlQuery string `json:"qlQuery,omitempty"` + Iql string `json:"iql,omitempty"` + Options string `json:"options,omitempty"` +} + type ObjectTypeAttributeScheme struct { WorkspaceId string `json:"workspaceId,omitempty"` GlobalId string `json:"globalId,omitempty"` From 258cc8502703a31fa02d8608bafa50d7f9217d2d Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Mon, 5 Feb 2024 09:45:54 +0100 Subject: [PATCH 02/15] Update object_type_attribute_impl.go --- assets/internal/object_type_attribute_impl.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/internal/object_type_attribute_impl.go b/assets/internal/object_type_attribute_impl.go index 5d1464bc..8c1a8f0b 100644 --- a/assets/internal/object_type_attribute_impl.go +++ b/assets/internal/object_type_attribute_impl.go @@ -25,7 +25,7 @@ type ObjectTypeAttributeService struct { // POST /jsm/assets/workspace/{workspaceId}/v1/objecttypeattribute/{objectTypeId} // // https://docs.go-atlassian.io/jira-assets/object/type/attribute#create-object-type-attribute -func (o *ObjectTypeAttributeService) Create(ctx context.Context, workspaceID, objectTypeID string, payload *model.ObjectTypeAttributeScheme) (*model.ObjectTypeAttributeScheme, *model.ResponseScheme, error) { +func (o *ObjectTypeAttributeService) Create(ctx context.Context, workspaceID, objectTypeID string, payload *model.ObjectTypeAttributePayloadScheme) (*model.ObjectTypeAttributeScheme, *model.ResponseScheme, error) { return o.internalClient.Create(ctx, workspaceID, objectTypeID, payload) } @@ -51,7 +51,7 @@ type internalObjectTypeAttributeImpl struct { c service.Connector } -func (i *internalObjectTypeAttributeImpl) Create(ctx context.Context, workspaceID, objectTypeID string, payload *model.ObjectTypeAttributeScheme) (*model.ObjectTypeAttributeScheme, *model.ResponseScheme, error) { +func (i *internalObjectTypeAttributeImpl) Create(ctx context.Context, workspaceID, objectTypeID string, payload *model.ObjectTypeAttributePayloadScheme) (*model.ObjectTypeAttributeScheme, *model.ResponseScheme, error) { if workspaceID == "" { return nil, nil, model.ErrNoWorkspaceIDError @@ -77,7 +77,7 @@ func (i *internalObjectTypeAttributeImpl) Create(ctx context.Context, workspaceI return attribute, res, nil } -func (i *internalObjectTypeAttributeImpl) Update(ctx context.Context, workspaceID, objectTypeID, attributeID string, payload *model.ObjectTypeAttributeScheme) (*model.ObjectTypeAttributeScheme, *model.ResponseScheme, error) { +func (i *internalObjectTypeAttributeImpl) Update(ctx context.Context, workspaceID, objectTypeID, attributeID string, payload *model.ObjectTypeAttributePayloadScheme) (*model.ObjectTypeAttributeScheme, *model.ResponseScheme, error) { if workspaceID == "" { return nil, nil, model.ErrNoWorkspaceIDError From c5a78d4b79be6d4c18c7e3fcc7ea610742e624b4 Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Mon, 5 Feb 2024 09:49:21 +0100 Subject: [PATCH 03/15] Update object_type_attribute_impl_test.go --- .../object_type_attribute_impl_test.go | 46 ++++++++----------- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/assets/internal/object_type_attribute_impl_test.go b/assets/internal/object_type_attribute_impl_test.go index 07aaa71f..d0b47e48 100644 --- a/assets/internal/object_type_attribute_impl_test.go +++ b/assets/internal/object_type_attribute_impl_test.go @@ -13,19 +13,16 @@ import ( func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { - payloadMocked := &model.ObjectTypeAttributeScheme{ - WorkspaceId: "g2778e1d-939d-581d-c8e2-9d5g59de456b", - GlobalId: "g2778e1d-939d-581d-c8e2-9d5g59de456b:1330", - ID: "1330", - ObjectType: nil, - Name: "Geolocation", - Label: false, - Type: 0, - Description: "", - DefaultType: &model.ObjectTypeAssetAttributeDefaultTypeScheme{ - ID: 0, - Name: "Text", - }, + payloadMocked := &model.ObjectTypeAttributePayloadScheme{ + WorkspaceId: "g2778e1d-939d-581d-c8e2-9d5g59de456b", + GlobalId: "g2778e1d-939d-581d-c8e2-9d5g59de456b:1330", + ID: "1330", + ObjectType: nil, + Name: "Geolocation", + Label: false, + Type: 0, + Description: "", + DefaultTypeId: 0, TypeValue: "", TypeValueMulti: nil, AdditionalValue: "", @@ -182,19 +179,16 @@ func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { func Test_internalObjectTypeAttributeImpl_Update(t *testing.T) { - payloadMocked := &model.ObjectTypeAttributeScheme{ - WorkspaceId: "g2778e1d-939d-581d-c8e2-9d5g59de456b", - GlobalId: "g2778e1d-939d-581d-c8e2-9d5g59de456b:1330", - ID: "1330", - ObjectType: nil, - Name: "Geolocation", - Label: false, - Type: 0, - Description: "", - DefaultType: &model.ObjectTypeAssetAttributeDefaultTypeScheme{ - ID: 0, - Name: "Text", - }, + payloadMocked := &model.ObjectTypeAttributePayloadScheme{ + WorkspaceId: "g2778e1d-939d-581d-c8e2-9d5g59de456b", + GlobalId: "g2778e1d-939d-581d-c8e2-9d5g59de456b:1330", + ID: "1330", + ObjectType: nil, + Name: "Geolocation", + Label: false, + Type: 0, + Description: "", + DefaultTypeId: 0, TypeValue: "", TypeValueMulti: nil, AdditionalValue: "", From a8231d1e93c554290513f8205c15d96a357eadaf Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Tue, 6 Feb 2024 08:06:48 +0100 Subject: [PATCH 04/15] Update object_type_attribute.go --- service/assets/object_type_attribute.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/assets/object_type_attribute.go b/service/assets/object_type_attribute.go index 9730602a..bc06dba8 100644 --- a/service/assets/object_type_attribute.go +++ b/service/assets/object_type_attribute.go @@ -14,7 +14,7 @@ type ObjectTypeAttributeConnector interface { // POST /jsm/assets/workspace/{workspaceId}/v1/objecttypeattribute/{objectTypeId} // // https://docs.go-atlassian.io/jira-assets/object/type/attribute#create-object-type-attribute - Create(ctx context.Context, workspaceID, objectTypeID string, payload *models.ObjectTypeAttributeScheme) ( + Create(ctx context.Context, workspaceID, objectTypeID string, payload *models.ObjectTypeAttributePayloadScheme) ( *models.ObjectTypeAttributeScheme, *models.ResponseScheme, error) // Update updates an existing object type attribute @@ -22,7 +22,7 @@ type ObjectTypeAttributeConnector interface { // PUT /jsm/assets/workspace/{workspaceId}/v1/objecttypeattribute/{objectTypeId}/{id} // // https://docs.go-atlassian.io/jira-assets/object/type/attribute#update-object-type-attribute - Update(ctx context.Context, workspaceID, objectTypeID, attributeID string, payload *models.ObjectTypeAttributeScheme) ( + Update(ctx context.Context, workspaceID, objectTypeID, attributeID string, payload *models.ObjectTypeAttributePayloadScheme) ( *models.ObjectTypeAttributeScheme, *models.ResponseScheme, error) // Delete deletes an existing object type attribute From 419186e956e56294496badf3867cd4bb6fbc11b9 Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Wed, 7 Feb 2024 09:54:40 +0100 Subject: [PATCH 05/15] Update assets_object.go --- pkg/infra/models/assets_object.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/infra/models/assets_object.go b/pkg/infra/models/assets_object.go index 0b59c6e4..0d65f7f1 100644 --- a/pkg/infra/models/assets_object.go +++ b/pkg/infra/models/assets_object.go @@ -105,13 +105,13 @@ type ObjectTypeAttributePayloadScheme struct { Name string `json:"name,omitempty"` Label bool `json:"label,omitempty"` Description string `json:"description,omitempty"` - Type int `json:"type,omitempty"` - DefaultTypeId int `json:defaultTypeId,omitempty"` + Type *int `json:"type,omitempty"` + DefaultTypeId *int `json:defaultTypeId,omitempty"` TypeValue string `json:"typeValue,omitempty"` TypeValueMulti []string `json:"typeValueMulti,omitempty"` AdditionalValue string `json:"additionalValue,omitempty"` - MinimumCardinality int `json:"minimumCardinality,omitempty"` - MaximumCardinality int `json:"maximumCardinality,omitempty"` + MinimumCardinality *int `json:"minimumCardinality,omitempty"` + MaximumCardinality *int `json:"maximumCardinality,omitempty"` Suffix string `json:"suffix,omitempty"` IncludeChildObjectTypes bool `json:"includeChildObjectTypes,omitempty"` Hidden bool `json:"hidden,omitempty"` From d9f9773ca6e22400079b65bfa980189b53a50347 Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:04:58 +0100 Subject: [PATCH 06/15] Update object_type_attribute_impl.go --- assets/internal/object_type_attribute_impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/internal/object_type_attribute_impl.go b/assets/internal/object_type_attribute_impl.go index 8c1a8f0b..0b6b8cca 100644 --- a/assets/internal/object_type_attribute_impl.go +++ b/assets/internal/object_type_attribute_impl.go @@ -34,7 +34,7 @@ func (o *ObjectTypeAttributeService) Create(ctx context.Context, workspaceID, ob // PUT /jsm/assets/workspace/{workspaceId}/v1/objecttypeattribute/{objectTypeId}/{id} // // https://docs.go-atlassian.io/jira-assets/object/type/attribute#update-object-type-attribute -func (o *ObjectTypeAttributeService) Update(ctx context.Context, workspaceID, objectTypeID, attributeID string, payload *model.ObjectTypeAttributeScheme) (*model.ObjectTypeAttributeScheme, *model.ResponseScheme, error) { +func (o *ObjectTypeAttributeService) Update(ctx context.Context, workspaceID, objectTypeID, attributeID string, payload *model.ObjectTypeAttributePayloadScheme) (*model.ObjectTypeAttributeScheme, *model.ResponseScheme, error) { return o.internalClient.Update(ctx, workspaceID, objectTypeID, attributeID, payload) } From e4cdf6e143c70cf00e7c11699f34d44cc8e4db9f Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:08:56 +0100 Subject: [PATCH 07/15] Update object_type_attribute_impl_test.go --- assets/internal/object_type_attribute_impl_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/assets/internal/object_type_attribute_impl_test.go b/assets/internal/object_type_attribute_impl_test.go index d0b47e48..08cf0cd2 100644 --- a/assets/internal/object_type_attribute_impl_test.go +++ b/assets/internal/object_type_attribute_impl_test.go @@ -14,10 +14,6 @@ import ( func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { payloadMocked := &model.ObjectTypeAttributePayloadScheme{ - WorkspaceId: "g2778e1d-939d-581d-c8e2-9d5g59de456b", - GlobalId: "g2778e1d-939d-581d-c8e2-9d5g59de456b:1330", - ID: "1330", - ObjectType: nil, Name: "Geolocation", Label: false, Type: 0, From e7a2135fdc4c6b72d48b1352ebf1ea90226db51d Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:16:17 +0100 Subject: [PATCH 08/15] Update object_type_attribute_impl_test.go --- assets/internal/object_type_attribute_impl_test.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/assets/internal/object_type_attribute_impl_test.go b/assets/internal/object_type_attribute_impl_test.go index 08cf0cd2..277a891d 100644 --- a/assets/internal/object_type_attribute_impl_test.go +++ b/assets/internal/object_type_attribute_impl_test.go @@ -12,19 +12,17 @@ import ( ) func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { - + attributeType := 0 + defaultTypeId := 0 payloadMocked := &model.ObjectTypeAttributePayloadScheme{ Name: "Geolocation", Label: false, - Type: 0, + Type: &attributeType, Description: "", - DefaultTypeId: 0, + DefaultTypeId: &defaultTypeId, TypeValue: "", TypeValueMulti: nil, AdditionalValue: "", - ReferenceType: nil, - ReferenceObjectTypeId: "", - ReferenceObjectType: nil, Editable: false, System: false, Indexed: false, From 0fee23c59f1cfb5b81aeffd7090c1659db1cc0bd Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:22:35 +0100 Subject: [PATCH 09/15] Update object_type_attribute_impl_test.go --- assets/internal/object_type_attribute_impl_test.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/assets/internal/object_type_attribute_impl_test.go b/assets/internal/object_type_attribute_impl_test.go index 277a891d..848bba14 100644 --- a/assets/internal/object_type_attribute_impl_test.go +++ b/assets/internal/object_type_attribute_impl_test.go @@ -23,16 +23,10 @@ func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { TypeValue: "", TypeValueMulti: nil, AdditionalValue: "", - Editable: false, - System: false, - Indexed: false, - Sortable: false, Summable: false, MinimumCardinality: 0, MaximumCardinality: 0, Suffix: "", - Removable: false, - ObjectAttributeExists: false, Hidden: false, IncludeChildObjectTypes: false, UniqueAttribute: false, @@ -40,7 +34,6 @@ func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { Iql: "", QlQuery: "", Options: "", - Position: 6, } type fields struct { From 2d5324a19ac437329c71073e0563630316d2db58 Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:27:48 +0100 Subject: [PATCH 10/15] Update object_type_attribute_impl_test.go --- assets/internal/object_type_attribute_impl_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/assets/internal/object_type_attribute_impl_test.go b/assets/internal/object_type_attribute_impl_test.go index 848bba14..25e960e8 100644 --- a/assets/internal/object_type_attribute_impl_test.go +++ b/assets/internal/object_type_attribute_impl_test.go @@ -12,14 +12,12 @@ import ( ) func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { - attributeType := 0 - defaultTypeId := 0 payloadMocked := &model.ObjectTypeAttributePayloadScheme{ Name: "Geolocation", Label: false, - Type: &attributeType, + Type: *int(0), Description: "", - DefaultTypeId: &defaultTypeId, + DefaultTypeId: *int(0), TypeValue: "", TypeValueMulti: nil, AdditionalValue: "", From 395073e80fcb11c02f47d36b9472d2963ca2b266 Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:33:25 +0100 Subject: [PATCH 11/15] Update object_type_attribute_impl_test.go --- assets/internal/object_type_attribute_impl_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/internal/object_type_attribute_impl_test.go b/assets/internal/object_type_attribute_impl_test.go index 25e960e8..1ceb9ee9 100644 --- a/assets/internal/object_type_attribute_impl_test.go +++ b/assets/internal/object_type_attribute_impl_test.go @@ -15,9 +15,9 @@ func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { payloadMocked := &model.ObjectTypeAttributePayloadScheme{ Name: "Geolocation", Label: false, - Type: *int(0), + Type: &int(0), Description: "", - DefaultTypeId: *int(0), + DefaultTypeId: &int(0), TypeValue: "", TypeValueMulti: nil, AdditionalValue: "", From 495bad581b0a82ce31e9a892e5aeb0e00507bc48 Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 10:35:29 +0100 Subject: [PATCH 12/15] Update object_type_attribute_impl_test.go --- assets/internal/object_type_attribute_impl_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/internal/object_type_attribute_impl_test.go b/assets/internal/object_type_attribute_impl_test.go index 1ceb9ee9..d87710e1 100644 --- a/assets/internal/object_type_attribute_impl_test.go +++ b/assets/internal/object_type_attribute_impl_test.go @@ -12,12 +12,16 @@ import ( ) func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { + var attributeType int + var defaultTypeID int + attributeType = 0 + defaultTypeID = 0 payloadMocked := &model.ObjectTypeAttributePayloadScheme{ Name: "Geolocation", Label: false, - Type: &int(0), + Type: &attributeType, Description: "", - DefaultTypeId: &int(0), + DefaultTypeId: &defaultTypeID, TypeValue: "", TypeValueMulti: nil, AdditionalValue: "", From 055fc71b86c54ba0d114f69cc8b4b9a767b015cd Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:14:31 +0100 Subject: [PATCH 13/15] Update object_type_attribute_impl_test.go --- .../object_type_attribute_impl_test.go | 44 +++++++++---------- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/assets/internal/object_type_attribute_impl_test.go b/assets/internal/object_type_attribute_impl_test.go index d87710e1..b453883c 100644 --- a/assets/internal/object_type_attribute_impl_test.go +++ b/assets/internal/object_type_attribute_impl_test.go @@ -14,8 +14,12 @@ import ( func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { var attributeType int var defaultTypeID int + var minimumCardinality int + var maximumCardinality int attributeType = 0 defaultTypeID = 0 + minimumCardinality = 0 + maximumCardinality = 0 payloadMocked := &model.ObjectTypeAttributePayloadScheme{ Name: "Geolocation", Label: false, @@ -26,8 +30,8 @@ func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { TypeValueMulti: nil, AdditionalValue: "", Summable: false, - MinimumCardinality: 0, - MaximumCardinality: 0, + MinimumCardinality: &minimumCardinality, + MaximumCardinality: &maximumCardinality, Suffix: "", Hidden: false, IncludeChildObjectTypes: false, @@ -45,7 +49,7 @@ func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { type args struct { ctx context.Context workspaceID, objectTypeID string - payload *model.ObjectTypeAttributeScheme + payload *model.ObjectTypeAttributePayloadScheme } testCases := []struct { @@ -168,32 +172,27 @@ func Test_internalObjectTypeAttributeImpl_Create(t *testing.T) { func Test_internalObjectTypeAttributeImpl_Update(t *testing.T) { + var attributeType int + var defaultTypeID int + var minimumCardinality int + var maximumCardinality int + attributeType = 0 + defaultTypeID = 0 + minimumCardinality = 0 + maximumCardinality = 0 payloadMocked := &model.ObjectTypeAttributePayloadScheme{ - WorkspaceId: "g2778e1d-939d-581d-c8e2-9d5g59de456b", - GlobalId: "g2778e1d-939d-581d-c8e2-9d5g59de456b:1330", - ID: "1330", - ObjectType: nil, - Name: "Geolocation", - Label: false, - Type: 0, + Name: "Geolocation", + Label: false, + Type: &attributeType, Description: "", - DefaultTypeId: 0, + DefaultTypeId: &defaultTypeID, TypeValue: "", TypeValueMulti: nil, AdditionalValue: "", - ReferenceType: nil, - ReferenceObjectTypeId: "", - ReferenceObjectType: nil, - Editable: false, - System: false, - Indexed: false, - Sortable: false, Summable: false, - MinimumCardinality: 0, - MaximumCardinality: 0, + MinimumCardinality: &minimumCardinality, + MaximumCardinality: &maximumCardinality, Suffix: "", - Removable: false, - ObjectAttributeExists: false, Hidden: false, IncludeChildObjectTypes: false, UniqueAttribute: false, @@ -201,7 +200,6 @@ func Test_internalObjectTypeAttributeImpl_Update(t *testing.T) { Iql: "", QlQuery: "", Options: "", - Position: 6, } type fields struct { From 6927b3839312e0227d3aaf522de494bdfa478f3d Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:16:53 +0100 Subject: [PATCH 14/15] Update object_type_attribute_impl_test.go --- assets/internal/object_type_attribute_impl_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/internal/object_type_attribute_impl_test.go b/assets/internal/object_type_attribute_impl_test.go index b453883c..2e6caa10 100644 --- a/assets/internal/object_type_attribute_impl_test.go +++ b/assets/internal/object_type_attribute_impl_test.go @@ -209,7 +209,7 @@ func Test_internalObjectTypeAttributeImpl_Update(t *testing.T) { type args struct { ctx context.Context workspaceID, objectTypeID, attributeID string - payload *model.ObjectTypeAttributeScheme + payload *model.ObjectTypeAttributePayloadScheme } testCases := []struct { From a3aaa29bde47c026b6386ac5452c56baf9ea795f Mon Sep 17 00:00:00 2001 From: tbaert-prest <158584906+tbaert-prest@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:20:04 +0100 Subject: [PATCH 15/15] Update assets_object.go --- pkg/infra/models/assets_object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/infra/models/assets_object.go b/pkg/infra/models/assets_object.go index 0d65f7f1..4bee39e4 100644 --- a/pkg/infra/models/assets_object.go +++ b/pkg/infra/models/assets_object.go @@ -106,7 +106,7 @@ type ObjectTypeAttributePayloadScheme struct { Label bool `json:"label,omitempty"` Description string `json:"description,omitempty"` Type *int `json:"type,omitempty"` - DefaultTypeId *int `json:defaultTypeId,omitempty"` + DefaultTypeId *int `json:"defaultTypeId,omitempty"` TypeValue string `json:"typeValue,omitempty"` TypeValueMulti []string `json:"typeValueMulti,omitempty"` AdditionalValue string `json:"additionalValue,omitempty"`