Skip to content

Commit

Permalink
Merge pull request #192 from SwissDataScienceCenter/fix/160-enum-casing
Browse files Browse the repository at this point in the history
Fix casing in api docs for visibility values
  • Loading branch information
eikek authored Aug 28, 2024
2 parents c2445d3 + 6697f4c commit f0c1168
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
groupMemberAdded = "groupMemberAdded";
groupMemberUpdated = "groupMemberUpdated";
groupMemberRemoved = "groupMemberRemoved";
searchSync = "searchSync";
searchSync = "search.sync";
};

queueNameConfig = with nixpkgs.lib; mapAttrs' (key: qn: nameValuePair "RS_REDIS_QUEUE_${key}" qn) queueNames;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ enum Visibility:
lazy val name: String = productPrefix.toLowerCase
case Public, Private

override def toString(): String = name

object Visibility:
given Order[Visibility] = Order.by(_.ordinal)
given Encoder[Visibility] = Encoder.forString.contramap(_.name)
Expand Down

0 comments on commit f0c1168

Please sign in to comment.