Skip to content

Commit 66557ad

Browse files
Merge pull request #1195 from Backbase/fix/MF-2445-Removal-of-deprecated-logic
MF-2445: Removal of deprecated initialiser in the swift templates
2 parents 2c1edc7 + 9cee7cf commit 66557ad

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ It currently consists of
1515

1616
# Release Notes
1717
BOAT is still under development and subject to change.
18+
## 0.17.74
19+
* Swift5: Removed deprecated initializer from model objects. The initializer is now internal and only accessible through the Builder pattern, preventing breaking code from deprecation warnings.
20+
1821
## 0.17.73
1922
Added code related to generate webhook endpoints with different goal
2023
To add prehook and posthook request mappings for all the requests in spec yaml using webhooks.

boat-scaffold/src/main/templates/boat-swift5/modelObject.mustache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@
2525
{{/allVars}}
2626

2727
{{#hasVars}}
28-
@available(*, deprecated, message: "This initializer is deprecated, use the initializer and the setters of {{classname}}.Builder class.")
29-
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}public{{/nonPublicApi}} init({{#allVars}}{{name}}: {{{datatypeWithEnum}}}{{#required}}{{#isNullable}}? = nil{{/isNullable}}{{/required}}{{^required}}? = nil{{/required}}{{^-last}}, {{/-last}}{{/allVars}}) {
28+
internal init({{#allVars}}{{name}}: {{{datatypeWithEnum}}}{{#required}}{{#isNullable}}? = nil{{/isNullable}}{{/required}}{{^required}}? = nil{{/required}}{{^-last}}, {{/-last}}{{/allVars}}) {
3029
{{#allVars}}
3130
self.{{name}} = {{name}}
3231
{{/allVars}}

0 commit comments

Comments
 (0)