Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Move PostableUserConfig validation to this library #48

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

gotjosh
Copy link
Contributor

@gotjosh gotjosh commented Apr 9, 2021

I had this validation as part https://github.com/grafana/grafana/blob/master/pkg/services/ngalert/notifier/config.go#L85-L96.

While doing some work around the area, I realised that this validation was not being enforced at an API level. Given the API already serializes this struct before it reaches the internal library.

It feels like it belongs here after all.

@owen-d owen-d merged commit 44440a7 into master Apr 9, 2021
@owen-d owen-d deleted the move-validation branch April 9, 2021 14:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants