Passed
Push — main ( f24a32...53c867 )
by Acho
03:11
created

requests.*PhoneAPIKeyStoreRequest.Sanitize   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
nop 0
1
package requests
2
3
// PhoneAPIKeyStoreRequest is the payload for storing a phone API key
4
type PhoneAPIKeyStoreRequest struct {
5
	request
6
	Name string `json:"name" example:"My Phone API Key"`
7
}
8
9
// Sanitize sets defaults to MessageReceive
10
func (input *PhoneAPIKeyStoreRequest) Sanitize() PhoneAPIKeyStoreRequest {
11
	input.Name = input.sanitizeAddress(input.Name)
12
	return *input
13
}
14