{"action":"closed","issue":{"url":"https://api.github.com/repos/damballa/abracad/issues/19","labels_url":"https://api.github.com/repos/damballa/abracad/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/damballa/abracad/issues/19/comments","events_url":"https://api.github.com/repos/damballa/abracad/issues/19/events","html_url":"https://github.com/damballa/abracad/issues/19","id":107626294,"number":19,"title":"Difficulty using abracad.avro with string field","user":{"login":"tewarfel","id":3178215,"avatar_url":"https://avatars.githubusercontent.com/u/3178215?v=3","gravatar_id":"","url":"https://api.github.com/users/tewarfel","html_url":"https://github.com/tewarfel","followers_url":"https://api.github.com/users/tewarfel/followers","following_url":"https://api.github.com/users/tewarfel/following{/other_user}","gists_url":"https://api.github.com/users/tewarfel/gists{/gist_id}","starred_url":"https://api.github.com/users/tewarfel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tewarfel/subscriptions","organizations_url":"https://api.github.com/users/tewarfel/orgs","repos_url":"https://api.github.com/users/tewarfel/repos","events_url":"https://api.github.com/users/tewarfel/events{/privacy}","received_events_url":"https://api.github.com/users/tewarfel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-22T00:55:29Z","updated_at":"2015-09-22T00:58:52Z","closed_at":"2015-09-22T00:58:52Z","body":"I'm trying to write an Avro JSON encoding with a simple JSON schema, \r\n\r\n```clojure\r\n(ns foo.core\r\n  (:require [abracad.avro :as avro])\r\n  (:gen-class))\r\n\r\n(defn encode-session-request [session-name ]\r\n   (let [schema (avro/parse-schema\r\n                     {:type \"record\",\r\n                      :name \"SessionRequest\",\r\n                      :fields [{:name \"sessionID\", :type :string}\r\n                               {:name \"someNumber\", :type :long }]})\r\n        avro-request (avro/json-encoded schema session-name 42)]\r\n       avro-request))\r\n\r\n(defn -main [ ]\r\n   (println (encode-session-request \"aSessionName\")))\r\n```\r\nbut am getting the compile-time error\r\n\r\n_Exception in thread \"main\" java.lang.IllegalArgumentException: No implementation of method: :field-list of protocol: #'abracad.avro/AvroSerializable found for class: java.lang.String, compiling:(/private/var/folders/p6/ynk66dwn3yndyx3fv787ysd4rvtp8r/T/form-init2135414968022195924.clj:1:125)_\r\n\r\nAm I missing something?\r\n\r\nThanks,\r\n-Tom\r\n"}}