                  conj {:name     :request-body
                        :in       :body
                        :required true
-                       :schema   {"$ref" schema-reference}}))
+                       :schema   schema-reference}))
     ; no schema:
     swagger-object))
 


    ;; Avoid forward slash in the swagger name, as that's problematic.
    [swagger-name (str schema-ns \: schema-name)
     swagger-reference (str "#/definitions/" swagger-name)
     swagger-schema (get-in swagger-object [:definitions swagger-name])]

    (some? swagger-schema)

  "Converts a schema to a schema reference; the schema must be named.  Returns a tuple
  of the possibly updated swagger object and a string reference to the schema within the swagger object
  (as a path string)."
  [swagger-options swagger-object schema]
  (cond-let
    [schema-name (s/schema-name schema)
