* added figma analyzer * fixed lint issue * fixed lint issue (2) * added endpoint config from json * simplified scope extraction and endpoint configuration * updated with lint issue fixes --------- Co-authored-by: Kashif Khan <[email protected]>
21 lines
535 B
Go
21 lines
535 B
Go
package figma
|
|
|
|
type userInfo struct {
|
|
ID string `json:"id"`
|
|
Handle string `json:"handle"`
|
|
ImgURL string `json:"img_url"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type secretInfo struct {
|
|
UserInfo userInfo
|
|
Scopes map[Scope]ScopeStatus
|
|
}
|
|
|
|
type endpoint struct {
|
|
URL string `json:"url"`
|
|
Method string `json:"method"`
|
|
ExpectedStatusCodeWithScope int `json:"expected_status_code_with_scope"`
|
|
ExpectedStatusCodeWithoutScope int `json:"expected_status_code_without_scope"`
|
|
}
|