Skip to content

Commit

Permalink
Merge branch 'bugfix-wrong-format-for-ref-and-title-types' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
SMILEY4 committed Sep 15, 2024
2 parents 28e7371 + 4239e3d commit bfdc3d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kotlin.code.style=official
# project id
projectGroupId=io.github.smiley4
projectArtifactIdBase=schema-kenerator
projectVersion=1.2.1
projectVersion=1.2.2

# publishing information
projectNameBase=Schema-Kenerator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ object TitleBuilder {
* Example: MyType_MyParam1-MyParam2
*/
val BUILDER_OPENAPI_SIMPLE: (schema: BaseTypeData, types: Map<TypeId, BaseTypeData>) -> String =
{ type, types -> buildOpenApiFull(type, types) }
{ type, types -> buildOpenApiSimple(type, types) }


/**
* Only the (short) name of the type and the type (short) names of type parameters formatted to be valid for an openapi spec.
* Example: my.path.MyType_my.path.MyParam1-my.path.MyParam2
*/
val BUILDER_OPENAPI_FULL: (schema: BaseTypeData, types: Map<TypeId, BaseTypeData>) -> String =
{ type, types -> buildOpenApiSimple(type, types) }
{ type, types -> buildOpenApiFull(type, types) }

private fun buildSimple(type: BaseTypeData, types: Map<TypeId, BaseTypeData>): String {
return type.simpleName
Expand Down

0 comments on commit bfdc3d1

Please sign in to comment.