Fork me on GitHub

@bja that’s totally valid. Some people run the middleware-stack on AWS Lambda for example (


hi.. i have my custom schema type Attribute, tried the class-based dispatch like this (defmethod json-schema/convert-class Attribute [val options] ... ) but it wasn't recognized .. I get the "don't know how to convert" error ... Does that seem right? Attribute is "implementing" Schema protocol


I haven't used multimethods before, so I thought I'd give it a try..


the multimethod is only used if the type is presented as Class, e.g. java.lang.String. If your Attribute is a instance of a class, you can use the JsonSchema protocol for the mapping.


right thanks.. protocol-based works ok.. i thought (defprotocol Attribute ...) creates a java class i could use with multimethods