Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove param from SCIM types #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions scim/schema/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const (
Unsupported Type = iota
Schemas
API
Param
)

func (t Type) String() string {
Expand All @@ -15,8 +14,6 @@ func (t Type) String() string {
return "schemas"
case API:
return "api"
case Param:
return "param"
}

return ""
Expand All @@ -28,8 +25,6 @@ func TypeFromString(input string) Type {
return Schemas
case "api":
return API
case "param":
return Param
}

return Unsupported
Expand Down
4 changes: 0 additions & 4 deletions scim/schema/type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,4 @@ func TestTypeFromString(t *testing.T) {
api := TypeFromString("api")
require.Equal(t, API, api)
require.Equal(t, "api", api.String())

param := TypeFromString("param")
require.Equal(t, Param, param)
require.Equal(t, "param", param.String())
}
Loading