File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/main/kotlin/com/github/hauner/openapi/json/generatr Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,23 @@ import java.io.File
3030 */
3131class JsonGeneratr : OpenApiGeneratr {
3232
33+ /* *
34+ * provides the generatr name.
35+ */
3336 override fun getName (): String {
3437 return " json"
3538 }
3639
40+ /* *
41+ * runs the generatr.
42+ *
43+ * the options map should contain the following key/value pairs:
44+ *
45+ * - apiPath: (required) the path to the openapi.yaml file and the main input for the generatr.
46+ * - targetDir: (required) the output folder for generating the openapi.json file.
47+ *
48+ * @param options map of generatr properties
49+ */
3750 override fun run (options : MutableMap <String , * >) {
3851 val apiPath: String? = options[" apiPath" ]?.toString()
3952 val targetDir: String? = options[" targetDir" ]?.toString()
You can’t perform that action at this time.
0 commit comments