add unit tests

This commit is contained in:
Tim Möhlmann 2023-02-28 19:58:08 +02:00
parent b5d2050c2a
commit 5cd0653c33
5 changed files with 278 additions and 25 deletions

View file

@ -24,6 +24,6 @@ type DeviceAuthorizationResponse struct {
// https://www.rfc-editor.org/rfc/rfc8628#section-3.4,
// Device Access Token Request.
type DeviceAccessTokenRequest struct {
GrantType GrantType `json:"grant_type"`
DeviceCode string `json:"device_code"`
GrantType GrantType `json:"grant_type" schema:"grant_type"`
DeviceCode string `json:"device_code" schema:"device_code"`
}