Skip to content

Commit

Permalink
Добавлена поддержка double и float
Browse files Browse the repository at this point in the history
  • Loading branch information
timbaev committed Oct 25, 2024
1 parent cf96367 commit b1f38b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/AnalyticsGen/Models/JSONSchema/SimpleType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ enum SimpleType: String, Decodable {
case number
case object
case string
case double
case float
}

// MARK: -
Expand All @@ -29,14 +31,17 @@ extension SimpleType {
case .null:
return "Optional<Any>.none"

case .number:
case .number, .double:
return "Double"

case .object:
return "Any"

case .string:
return "String"

case .float:
return "Float"
}
}
}

0 comments on commit b1f38b8

Please sign in to comment.