parses a project codebases and generates a swagger/OpenAPI schema
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- (ns gen.core
- (:require [clojure.string :as str]
- [clj-yaml.core :as yaml]
- [scan.lang.php.laravel5]))
-
- (def
- ^{}
- run
- (fn [args]
- (println
- (yaml/generate-string
- {"openapi" "3.0.0"
- :info
- {:version 1
- :title "thing"
- :license
- {:name "MIT"}}
- :servers
- [
- {:url "thing"}]
- :paths
- (scan.lang.php.laravel5/routes (first args))}
- :dumper-options {:indent 2
- :indicator-indent 1
- :flow-style :block}))))
-
- (comment
-
- )
-
- (defn -main [& argv]
- (prn (run argv)))
|