Permalink
Browse files

added map of map example

  • Loading branch information...
1 parent 87c5375 commit dfffe593ac1b9f5b98d0e6611e267ce6210f1e0c @rn-superg rn-superg committed Sep 9, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
9 README.md
@@ -43,6 +43,15 @@ Basic wrapper for avro functionality. Currently, only supports flat/linear sche
:payload {"key" "value"}}))
+ ;; Example using a nested "map of maps"
+ (def *avro-schema-with-map*
+ (avro/defschema
+ {:namespace "avro.examples"
+ :name "MapOfMaps"
+ :type "record"
+ :fields [{:name "command" :type "string"}
+ {:name "payload" :type {:type "map" :values ["string" "null" "int" {:type "map" :values "string"}]}}]}))
+
## Value Marshalling and Unmarshalling
The library contains multimethods to help assist with value

0 comments on commit dfffe59

Please sign in to comment.