mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-09-22 02:49:04 +02:00
docs: add missing swaggertype
This commit is contained in:
@@ -103,7 +103,7 @@ type OidcClientFederatedIdentityDto struct {
|
||||
Subject string `json:"subject,omitempty"`
|
||||
Audience string `json:"audience,omitempty"`
|
||||
JWKS string `json:"jwks,omitempty"`
|
||||
PublicKeys []json.RawMessage `json:"publicKeys,omitempty"`
|
||||
PublicKeys []json.RawMessage `json:"publicKeys,omitempty" swaggertype:"array,object"`
|
||||
ReplayProtection bool `json:"replayProtection"`
|
||||
}
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ func NormalizePublicKeys(raw []json.RawMessage) ([]json.RawMessage, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to encode key %d: %w", i+1, err)
|
||||
}
|
||||
normalized[i] = json.RawMessage(bytes.TrimSpace(encoded))
|
||||
normalized[i] = bytes.TrimSpace(encoded)
|
||||
}
|
||||
|
||||
return normalized, nil
|
||||
|
||||
Reference in New Issue
Block a user