Skip to content

Commit

Permalink
fix: mark oauth client metadata nullable and optional
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlytvyn committed Jun 3, 2021
1 parent d9eeaac commit 1bd0d39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1alpha1/oauth2client_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ type OAuth2ClientSpec struct {
TokenEndpointAuthMethod TokenEndpointAuthMethod `json:"tokenEndpointAuthMethod,omitempty"`

// +kubebuilder:validation:Type=object
// +nullable
// +optional
//
// Metadata is abritrary data
Metadata apiextensionsv1.JSON `json:"metadata,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/hydra.ory.sh_oauth2clients.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ spec:
type: object
metadata:
description: Metadata is abritrary data
nullable: true
type: object
x-kubernetes-preserve-unknown-fields: true
postLogoutRedirectUris:
Expand Down

0 comments on commit 1bd0d39

Please sign in to comment.