Skip to content

Commit ee8c6df

Browse files
committed
docs
1 parent 94fb219 commit ee8c6df

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/kotlin/com/github/hauner/openapi/json/generatr/JsonGeneratr.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,23 @@ import java.io.File
3030
*/
3131
class 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()

0 commit comments

Comments
 (0)