Skip to content

Commit

Permalink
feat: allow vectors for openapi/swagger :tags
Browse files Browse the repository at this point in the history
no need to insist on set, and many of our examples use vectors anyway
  • Loading branch information
opqdonut committed Sep 11, 2023
1 parent b4c0936 commit bad798d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/reitit-openapi/src/reitit/openapi.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

(s/def ::id (s/or :keyword keyword? :set (s/coll-of keyword? :into #{})))
(s/def ::no-doc boolean?)
(s/def ::tags (s/coll-of (s/or :keyword keyword? :string string?) :kind set?))
(s/def ::tags (s/coll-of (s/or :keyword keyword? :string string?)))
(s/def ::summary string?)
(s/def ::description string?)
(s/def :openapi/request-content-types (s/coll-of string?))
Expand Down
2 changes: 1 addition & 1 deletion modules/reitit-swagger/src/reitit/swagger.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

(s/def ::id (s/or :keyword keyword? :set (s/coll-of keyword? :into #{})))
(s/def ::no-doc boolean?)
(s/def ::tags (s/coll-of (s/or :keyword keyword? :string string?) :kind set?))
(s/def ::tags (s/coll-of (s/or :keyword keyword? :string string?)))
(s/def ::summary string?)
(s/def ::description string?)
(s/def ::operationId string?)
Expand Down

0 comments on commit bad798d

Please sign in to comment.