-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix SCIM query params #2680
Merged
Merged
Fix SCIM query params #2680
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
21abff1
Add the expected test case to mount the query string
exageraldo 269b973
Change 'json' tags to 'url' in ListSCIMProvisionedIdentitiesOptions s…
exageraldo f593c21
Remove unnecessary test case
exageraldo 03b3239
Add a testJSONMarshal test case and improve the variable name
exageraldo 0d91341
Move the test to the right place
exageraldo bc5dd90
Add a step to verify if all fields in the struct have the url tag
exageraldo f8b4ff5
Add/improve a string that better reflects the test case
exageraldo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,14 +69,14 @@ type SCIMProvisionedIdentities struct { | |
// | ||
// Github API docs: https://docs.github.com/en/rest/scim#list-scim-provisioned-identities--parameters | ||
type ListSCIMProvisionedIdentitiesOptions struct { | ||
StartIndex *int `json:"startIndex,omitempty"` // Used for pagination: the index of the first result to return. (Optional.) | ||
Count *int `json:"count,omitempty"` // Used for pagination: the number of results to return. (Optional.) | ||
StartIndex *int `url:"startIndex,omitempty"` // Used for pagination: the index of the first result to return. (Optional.) | ||
Count *int `url:"count,omitempty"` // Used for pagination: the number of results to return. (Optional.) | ||
// Filter results using the equals query parameter operator (eq). | ||
// You can filter results that are equal to id, userName, emails, and external_id. | ||
// For example, to search for an identity with the userName Octocat, you would use this query: ?filter=userName%20eq%20\"Octocat\". | ||
// To filter results for the identity with the email [email protected], you would use this query: ?filter=emails%20eq%20\"[email protected]\". | ||
// (Optional.) | ||
Filter *string `json:"filter,omitempty"` | ||
Filter *string `url:"filter,omitempty"` | ||
} | ||
|
||
// ListSCIMProvisionedIdentities lists SCIM provisioned identities. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, now I understand why you removed this before, as it really is no longer relevant.
Feel free to delete this if you wish, either in this PR or in your upcoming one.