Skip to content

Commit

Permalink
Ensure input gates validate label and description as strings
Browse files Browse the repository at this point in the history
Add **ExpectString** validation to enforce input types for "label" and "description" fields in `generate.edn`. This locks the fields to string values only, eliminating ambiguity and ensuring robust, error-free processing.
  • Loading branch information
sinkingsugar committed Nov 24, 2024
1 parent 3f1cf27 commit 445bf83
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crdt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,9 @@ concept MapLike = requires(Container c, Key k, Value v) {
{ c[k] } -> std::convertible_to<Value&>;
{ c.find(k) } -> std::convertible_to<typename Container::iterator>;
{ c.emplace(k, v) };
{ c.try_emplace(k, v) } -> std::same_as<std::pair<typename Container::iterator, bool>>;
{ c.clear() } -> std::same_as<void>;
{ c.erase(k) };
{ c.empty() } -> std::convertible_to<bool>;
{ c.size() } -> std::convertible_to<size_t>;
};

/// Represents the CRDT structure, generic over key (`K`) and value (`V`) types.
Expand Down

0 comments on commit 445bf83

Please sign in to comment.