Skip to content

Commit

Permalink
chore(json_schema): update json schema
Browse files Browse the repository at this point in the history
* also make linkedin optional and not required in json
  • Loading branch information
Stefan Jacobi committed May 29, 2024
1 parent 09eac11 commit b22d5ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ type ThirdPartyProviders struct {
Apple ThirdPartyProvider `yaml:"apple" json:"apple,omitempty" koanf:"apple"`
Discord ThirdPartyProvider `yaml:"discord" json:"discord,omitempty" koanf:"discord"`
Microsoft ThirdPartyProvider `yaml:"microsoft" json:"microsoft,omitempty" koanf:"microsoft"`
LinkedIn ThirdPartyProvider `yaml:"linkedin" json:"linkedin" koanf:"linkedin"`
LinkedIn ThirdPartyProvider `yaml:"linkedin" json:"linkedin,omitempty" koanf:"linkedin"`
}

func (p *ThirdPartyProviders) Validate() error {
Expand Down
3 changes: 3 additions & 0 deletions backend/json_schema/hanko.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,9 @@
},
"microsoft": {
"$ref": "#/$defs/ThirdPartyProvider"
},
"linkedin": {
"$ref": "#/$defs/ThirdPartyProvider"
}
},
"additionalProperties": false,
Expand Down

0 comments on commit b22d5ba

Please sign in to comment.