Skip to content

Commit 38810cb

Browse files
authored
Remove updated_title_roles (#45)
* remove updated_title_roles * Trigger CI rerun
1 parent cc96214 commit 38810cb

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
129129
## [3.4.0] - 2024-11-28
130130

131131
- Add Support for Class and Updated Title Roles in Autocomplete
132+
133+
## [4.0.0] - 2025-02-21
134+
135+
- Remove Support for Updated Title Roles

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<img src="https://img.shields.io/badge/repo%20status-Active-limegreen" alt="Repo Status">
1010
</a>&nbsp;
1111
<a href="https://pkg.go.dev/github.com/peopledatalabs/peopledatalabs-go">
12-
<img src="https://img.shields.io/github/go-mod/go-version/peopledatalabs/peopledatalabs-go" alt="Go 3.4.0" />
12+
<img src="https://img.shields.io/github/go-mod/go-version/peopledatalabs/peopledatalabs-go" alt="Go 4.0.0" />
1313
</a>&nbsp;
1414
<a href="https://github.com/peopledatalabs/peopledatalabs-go/actions/workflows/test.yaml">
1515
<img src="https://github.com/peopledatalabs/peopledatalabs-go/actions/workflows/test.yaml/badge.svg" alt="Tests Status" />

api/autocomplete_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestAutocompleteClass(t *testing.T) {
3434

3535
// test
3636
params := model.AutocompleteParams{
37-
BaseParams: model.BaseParams{Pretty: true, Size: 10, UpdatedTitleRoles: true},
37+
BaseParams: model.BaseParams{Pretty: true, Size: 10},
3838
AutocompleteBaseParams: model.AutocompleteBaseParams{Field: "class", Text: "sale"},
3939
}
4040
resp, err := auto.Autocomplete(context.Background(), params)

model/common.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ package model
33
import "errors"
44

55
type BaseParams struct {
6-
Pretty bool `json:"pretty,omitempty" url:"pretty,omitempty"` // Whether the output should have human-readable indentation.
7-
Size int `json:"size,omitempty" url:"size,omitempty"` // The number of matched records to return for this query if they exist*. Must be between 1 and 1000 (inclusive)
8-
UpdatedTitleRoles bool `json:"updated_title_roles,omitempty" url:"updated_title_roles,omitempty"` // If set to true, replaces the job title tags with the new taxonomy and adds the job_title_class/class field.
6+
Pretty bool `json:"pretty,omitempty" url:"pretty,omitempty"` // Whether the output should have human-readable indentation.
7+
Size int `json:"size,omitempty" url:"size,omitempty"` // The number of matched records to return for this query if they exist*. Must be between 1 and 1000 (inclusive)
98
}
109

1110
type AdditionalParams struct {

model/ip.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ type IPBaseParams struct {
1010
ReturnIPMetadata bool `json:"return_ip_metadata,omitempty" url:"return_ip_metadata,omitempty"` // If true, the response will include the metadata of the IP
1111
ReturnPerson bool `json:"return_person,omitempty" url:"return_person,omitempty"` // If true, the response will include the person fields
1212
ReturnIfUnmatched bool `json:"return_if_unmatched,omitempty" url:"return_if_unmatched,omitempty"` // If true, the response will return metadata/location even if no company is found
13-
UpdatedTitleRoles bool `json:"updated_title_roles,omitempty" url:"updated_title_roles,omitempty"` // If set to true, replaces the job title tags with the new taxonomy and adds the job_title_class field.
1413
MinConfidence string `json:"min_confidence,omitempty" url:"min_confidence,omitempty"` // The minimum confidence score a response must possess in order to return a 200
1514
}
1615

pld.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/peopledatalabs/peopledatalabs-go/v3/api"
55
)
66

7-
const Version = "3.4.0"
7+
const Version = "4.0.0"
88

99
type pld struct {
1010
Person api.Person

0 commit comments

Comments
 (0)