Skip to content

Commit 5936c25

Browse files
committed
clean up
1 parent 6b305c3 commit 5936c25

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/converter

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import java.net.URI
1414
import io.openapiprocessor.core.parser.RefResolver as ParserRefResolver
1515

1616
/**
17-
* Helper for [DataTypeConverter]. Holds an OpenAPI schema with context information, e.g. name and
17+
* Helper for [DataTypeConverter]. Holds an OpenAPI schema with context information, e.g., name and
1818
* if this is an inline type with a generated name.
1919
*/
2020
open class SchemaInfo(
@@ -39,12 +39,12 @@ open class SchemaInfo(
3939
private val schema: Schema,
4040

4141
/**
42-
* resolver of $ref'erences
42+
* resolver of $references.
4343
*/
4444
private val resolver: ParserRefResolver,
4545

4646
/**
47-
* json path like location
47+
* JSON path like location.
4848
*/
4949
private val location: String = "",
5050

@@ -61,13 +61,13 @@ open class SchemaInfo(
6161
): MappingSchema {
6262

6363
open class Endpoint(val path: String, val method: HttpMethod)
64-
class NoEndpoint(): Endpoint("", HttpMethod.GET)
64+
class NoEndpoint: Endpoint("", HttpMethod.GET)
6565

6666
/**
67-
* if this is a $ref it indicates that the name of this SchemaInfo should be propagated to its
67+
* If this is a $ref, it indicates that the name of this SchemaInfo should be propagated to its
6868
* resolved $ref.
6969
*
70-
* if the schema is the start of a $ref-chain, its original name should be used for the resolved
70+
* If the schema is the start of a $ref-chain, its original name should be used for the resolved
7171
* schema.
7272
*
7373
* The swagger parser (resolve option) creates schemas for intermediate $refs where the name is
@@ -97,7 +97,7 @@ open class SchemaInfo(
9797
}
9898

9999
/**
100-
* get type of OpenAPI schema.
100+
* get the type of the OpenAPI schema.
101101
*
102102
* @return schema type
103103
*/
@@ -299,7 +299,7 @@ open class SchemaInfo(
299299
}
300300

301301
/**
302-
* Factory method to create a {@link SchemaInfo} of the $ref'erenced schema.
302+
* Factory method to create a {@link SchemaInfo} of the $referenced schema.
303303
*
304304
* @return a new {@link SchemaInfo}
305305
*/
@@ -309,11 +309,11 @@ open class SchemaInfo(
309309
name // propagate "parent" name
310310
} else {
311311
resolved.name
312-
}!!
312+
}
313313

314314
val info = SchemaInfo(
315315
endpoint = endpoint,
316-
name = resolvedName,
316+
name = resolvedName!!,
317317
schema = resolved.schema,
318318
resolver = resolver,
319319
location = location,

0 commit comments

Comments
 (0)