Skip to content

Commit

Permalink
readme corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
yehohanan7 committed Feb 12, 2013
1 parent 91b505d commit 3a495aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
(ns avroclj.avrotest
(require '[avroclj.avro :as avro]))


;The avro schema to use for serializing/desrializing should be attached to the clojure map using the meta key :avro-type
;in the below example, avroclj will look for "avroclj/model/person/Person.avsc" in the class path
(defn person [fields]
(with-meta fields {:avro-type :avroclj-model-person-Person})
)
Expand Down

0 comments on commit 3a495aa

Please sign in to comment.