IsEmpty reports whether the patch carries no fields.
()
| 299 | |
| 300 | // IsEmpty reports whether the patch carries no fields. |
| 301 | func (req UpdateAIProviderRequest) IsEmpty() bool { |
| 302 | return req.DisplayName == nil && req.Enabled == nil && req.BaseURL == nil && req.APIKeys == nil && req.Settings == nil |
| 303 | } |
| 304 | |
| 305 | func validateAIProviderName(name string) []ValidationError { |
| 306 | var validations []ValidationError |