narkisr-deprecated / swag

A DSL for documenting Compojure routes using Swagger spec
23 stars 3 forks source link

How to create models with arrays #5

Closed kipz closed 10 years ago

kipz commented 10 years ago

I'm struggling to see how to create models (using defmodel) that contain arrays (either of primitives or other custom types).

Any help would be much appreciated.

narkisr commented 10 years ago

Hey, you can try:

(defmodel foo :args {:type "List" :items {"$ref" "String"}})