eb8dec1

Branches > namespace-reorganization > eb8dec1 > files / src / net / bowmap / packet_handling.clj

Split table from registry spec

Grahp, 2026-02-27

Commit: eb8dec1c4fcd8ff8bc35b17043a075c3bed13b52
Parent: b980c5b

1 changed file:

src/net/bowmap/packets/registry.clj modified (view file)

@@ -4,11 +4,13 @@    [dev.grahp.error :refer [raise]]    [net.bowmap.packet :as pk])) +(s/def ::table+  (s/* (s/cat :field keyword?+              :doc (s/? string?)+              :type #(or (keyword? %) (vector? %)))))+ (s/def ::packet-registry-  (s/map-of ::pk/id-            (s/* (s/cat :field keyword?-                        :doc (s/? string?)-                        :type #(or (keyword? %) (vector? %))))))+  (s/map-of ::pk/id ::table))  (defn conform-registry   "Returns a registry conformed to '::packet-registry', or throws if it is invalid"