Skip to content

Commit 58b15c0

Browse files
committed
clean up
1 parent a504959 commit 58b15c0

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/converter/ApiOptions.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ import io.openapiprocessor.core.support.Empty
1616
class ApiOptions: MappingSettings {
1717

1818
/**
19-
* the destination folder for generating interfaces & DTOs. This is the parent of the
19+
* The destination folder for generating interfaces & DTOs. This is the parent of the
2020
* {@link #packageName} folder tree.
2121
*/
2222
var targetDir: String? = null
2323

2424
/**
25-
* target-dir related options.
25+
* target-dir-related options.
2626
*/
2727
var targetDirOptions: TargetDirOptions = TargetDirOptions()
2828

2929
/**
30-
* the root package of the generated interfaces/model. The package folder tree will be created
30+
* The root package of the generated interfaces/model. The package folder tree will be created
3131
* inside {@link #targetDir}. Interfaces and models will be placed into the "api" and "model"
3232
* subpackages of packageName:
3333
* - interfaces => "${packageName}.api"
@@ -47,7 +47,7 @@ class ApiOptions: MappingSettings {
4747
val packageValidation get() = "${packageName}.${packageNameValidation}"
4848

4949
/**
50-
* enable Bean Validation (JSR303) annotations. Default is false (disabled)
50+
* Enable Bean Validation (JSR303) annotations. Default is false (disabled)
5151
*/
5252
var beanValidation = false
5353

@@ -57,7 +57,7 @@ class ApiOptions: MappingSettings {
5757
var beanValidationFormat: String? = null
5858

5959
/**
60-
* enable/disable generation of javadoc comments based on the `description` OpenAPI property.
60+
* enable/disable generation of Javadoc comments based on the `description` OpenAPI property.
6161
*
6262
* *experimental*
6363
*/
@@ -121,12 +121,12 @@ class ApiOptions: MappingSettings {
121121
var generatedDate = true
122122

123123
/**
124-
* add json property annotation: always/auto (optional).
124+
* add JSON property annotation: always/auto (optional).
125125
*/
126126
var jsonPropertyAnnotation = JsonPropertyAnnotationMode.Always
127127

128128
/**
129-
* base path related options
129+
* base path-related options
130130
*/
131131
var basePathOptions: BasePathOptions = BasePathOptions()
132132

@@ -154,7 +154,7 @@ class ApiOptions: MappingSettings {
154154
// compatibility options
155155

156156
/**
157-
* add @Valid on reactive type and not on the wrapped type
157+
* add @Valid on the reactive type and not on the wrapped type
158158
*/
159159
var beanValidationValidOnReactive = true
160160

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/processor/mapping/v2/Mapping.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import com.fasterxml.jackson.annotation.JsonProperty
1010
import io.openapiprocessor.core.processor.mapping.MappingVersion
1111

1212
/**
13-
* *the* v2 Schema of the mapping yaml
13+
* *the* v2 Schema of the mapping YAML
1414
*/
1515
data class Mapping(
1616

openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/processor/mapping/v2/Options.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import io.openapiprocessor.core.support.Empty
1313
data class Options(
1414

1515
/**
16-
* the root package name of the generated interfaces & models (required)
16+
* The root package name of the generated interfaces and models (required)
1717
*
1818
* Interfaces and models will be generated into the `api` and `model` subpackages of
1919
* `packageName`.
@@ -33,7 +33,7 @@ data class Options(
3333
val clearTargetDir: Boolean = true,
3434

3535
/**
36-
* target-dir related options.
36+
* target-dir-related options.
3737
*/
3838
val targetDir: TargetDir = TargetDir(),
3939

@@ -68,7 +68,7 @@ data class Options(
6868
val modelNameSuffix: String = String.Empty,
6969

7070
/**
71-
* base path related options (optional)
71+
* base path-related options (optional)
7272
*/
7373
val basePath: BasePath = BasePath(),
7474

@@ -78,7 +78,7 @@ data class Options(
7878
val oneOfInterface: Boolean = false,
7979

8080
/**
81-
* generate common interface for different responses of same content type (optional)
81+
* generate a common interface for different responses of the same content type (optional)
8282
*/
8383
val responseInterface: Boolean = false,
8484

openapi-processor-core/src/test/kotlin/io/openapiprocessor/core/support/OpenApiParser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import io.openapiprocessor.test.parser.openapi4j.parse as parseWithOpenApi4j
1313
import io.openapiprocessor.test.parser.swagger.parse as parseWithSwagger
1414

1515
/**
16-
* OpenAPI parser to read yaml from memory using the given parser.
16+
* OpenAPI parser to read YAML from memory using the given parser.
1717
*
1818
* extract individual Schemas with the get...Schema() functions on the [ParserOpenApi] result.
1919
*/

0 commit comments

Comments
 (0)