Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 14b5430

Browse files
committed
use same format as mapping
1 parent 0c628dd commit 14b5430

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/main/kotlin/io/openapiprocessor/core/converter/DataTypeConverter.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class DataTypeConverter(
214214

215215
var typeFormat = schemaInfo.getType()
216216
if (schemaInfo.getFormat() != null) {
217-
typeFormat += "/" + schemaInfo.getFormat()
217+
typeFormat += ":" + schemaInfo.getFormat()
218218
}
219219

220220
// todo factory method in SchemaInfo
@@ -231,22 +231,22 @@ class DataTypeConverter(
231231

232232
return when(typeFormat) {
233233
"integer",
234-
"integer/int32" ->
234+
"integer:int32" ->
235235
IntegerDataType(constraints, schemaInfo.getDeprecated())
236-
"integer/int64" ->
236+
"integer:int64" ->
237237
LongDataType(constraints, schemaInfo.getDeprecated())
238238
"number",
239-
"number/float" ->
239+
"number:float" ->
240240
FloatDataType(constraints, schemaInfo.getDeprecated())
241-
"number/double" ->
241+
"number:double" ->
242242
DoubleDataType(constraints, schemaInfo.getDeprecated())
243243
"boolean" ->
244244
BooleanDataType(constraints, schemaInfo.getDeprecated())
245245
"string" ->
246246
createStringDataType(schemaInfo, constraints, dataTypes)
247-
"string/date" ->
247+
"string:date" ->
248248
LocalDateDataType(constraints, schemaInfo.getDeprecated())
249-
"string/date-time" ->
249+
"string:date-time" ->
250250
OffsetDateTimeDataType (constraints, schemaInfo.getDeprecated())
251251
else ->
252252
throw UnknownDataTypeException(schemaInfo.getName(), schemaInfo.getType(),

0 commit comments

Comments
 (0)