forked from loafle/openapi-generator-original
* [Clojure] Add model generation and verification - Generate clojure.specs from models - Optionally validate them at runtime (validation is active if orchestra.spec.test/instrument is called after specs are imported) - Coerce the results of the API calls to get objects that conform to the spec (e.g. get Date objects for dates and time instead of strings) * [Clojure] Make model conforming configurable and opt-out * [Clojure] Move specs from a single file to a ns per model So that the order of the forms will be resolved by the compiler, otherwise we'd have to implement a topological ordering. * [Clojure] Update petstore sample and set automatic decoding off * [Clojure] Stop testing Clojure generator on Java7 * [Clojure] Fix tests and handling of multiple arity * [Clojure] Fix tests and add testing for the new decoding feature * [Clojure] Capitalize names of generated models * [Clojure] Rename petstore specs to be capitalized * Revert to lowercase spec names, and postfix the data specs
9 lines
496 B
Clojure
9 lines
496 B
Clojure
(defproject open-api-petstore "1.0.0"
|
|
:description "This is a sample server Petstore server. For this sample, you can use the api key \"special-key\" to test the authorization filters"
|
|
:license {:name "Apache-2.0"
|
|
:url "http://www.apache.org/licenses/LICENSE-2.0.html"}
|
|
:dependencies [[org.clojure/clojure "1.9.0"]
|
|
[metosin/spec-tools "0.7.0"]
|
|
[clj-http "3.8.0"]
|
|
[orchestra "2017.11.12-1"]
|
|
[cheshire "5.8.0"]]) |