Skip to content

Commit

Permalink
Modify recipient specs to avoid blank strings
Browse files Browse the repository at this point in the history
[Re #1]
  • Loading branch information
MikelElizondo committed Dec 4, 2023
1 parent 5212005 commit 8df6950
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This change

## [UNRELEASED]

## 0.1.13 - 2023-12-04
### Fixed
- Modify recipient specs to avoid blank strings

## [0.1.12] - 2022-08-31
### Added
- Add debug level logging to firebase functions
Expand Down
6 changes: 4 additions & 2 deletions src/dev/gethop/notifications/core.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
(ns dev.gethop.notifications.core
(:require [clojure.spec.alpha :as s]))
(:require [clojure.spec.alpha :as s]
[clojure.string :as str]))

(s/def ::logger any?)
(s/def ::recipients (s/coll-of string? :kind seqable?))
(s/def ::recipient (s/or :single string?
(s/def ::recipient (s/or :single (s/and string?
(complement str/blank?))
:multiple ::recipients))
(s/def ::message-values (s/or :string string?
:number number?
Expand Down

0 comments on commit 8df6950

Please sign in to comment.