This repository was archived by the owner on Mar 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
src/main/kotlin/io/openapiprocessor/core/converter Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ class DataTypeConverter(
214
214
215
215
var typeFormat = schemaInfo.getType()
216
216
if (schemaInfo.getFormat() != null ) {
217
- typeFormat + = " / " + schemaInfo.getFormat()
217
+ typeFormat + = " : " + schemaInfo.getFormat()
218
218
}
219
219
220
220
// todo factory method in SchemaInfo
@@ -231,22 +231,22 @@ class DataTypeConverter(
231
231
232
232
return when (typeFormat) {
233
233
" integer" ,
234
- " integer/ int32" ->
234
+ " integer: int32" ->
235
235
IntegerDataType (constraints, schemaInfo.getDeprecated())
236
- " integer/ int64" ->
236
+ " integer: int64" ->
237
237
LongDataType (constraints, schemaInfo.getDeprecated())
238
238
" number" ,
239
- " number/ float" ->
239
+ " number: float" ->
240
240
FloatDataType (constraints, schemaInfo.getDeprecated())
241
- " number/ double" ->
241
+ " number: double" ->
242
242
DoubleDataType (constraints, schemaInfo.getDeprecated())
243
243
" boolean" ->
244
244
BooleanDataType (constraints, schemaInfo.getDeprecated())
245
245
" string" ->
246
246
createStringDataType(schemaInfo, constraints, dataTypes)
247
- " string/ date" ->
247
+ " string: date" ->
248
248
LocalDateDataType (constraints, schemaInfo.getDeprecated())
249
- " string/ date-time" ->
249
+ " string: date-time" ->
250
250
OffsetDateTimeDataType (constraints, schemaInfo.getDeprecated())
251
251
else ->
252
252
throw UnknownDataTypeException (schemaInfo.getName(), schemaInfo.getType(),
You can’t perform that action at this time.
0 commit comments