MARKS fixes
This commit is contained in:
parent
bd61ed529e
commit
63694639e4
|
|
@ -9,7 +9,7 @@
|
|||
{%- endfor -%}
|
||||
|
||||
{%- if hasDateFields -%}
|
||||
// MARK - Date transformers
|
||||
// MARK: - Date transformers
|
||||
{%- for field in fields %}
|
||||
{% if field.type.type.baseTypeName == "DateTime" -%}
|
||||
static let {{ field.name }}Transform = ApiDateFormattingService.shared.mappingTransform(for: "{{ field.type.dateFormat }}")
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{%- import 'swift-utils.twig' as utils -%}
|
||||
|
||||
{%- if fields is not empty -%}
|
||||
// MARK - Fields
|
||||
// MARK: - Fields
|
||||
{% for field in fields %}
|
||||
/// {{ field.description }}
|
||||
let {{ field.name }}: {{ utils.formatNullable(utils.formatFieldValueType(field.type.type), field.nullable) }}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ import ObjectMapper
|
|||
|
||||
{% include 'Class.fields.swig' with { fields: fields } %}
|
||||
{% include 'Class.date-transformers.swig' with { fields: fields } %}
|
||||
// MARK: - Initializer
|
||||
|
||||
required init(map: Map) throws {
|
||||
{%- include 'Class.fields-mapping.swig' with { fields: fields } -%}
|
||||
{% if parent is not null %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue