diff --git a/Sources/ServiceModelGenerate/ServiceModelCodeGenerator+createStructureStubVariable.swift b/Sources/ServiceModelGenerate/ServiceModelCodeGenerator+createStructureStubVariable.swift index 32a72dd..05f83c7 100644 --- a/Sources/ServiceModelGenerate/ServiceModelCodeGenerator+createStructureStubVariable.swift +++ b/Sources/ServiceModelGenerate/ServiceModelCodeGenerator+createStructureStubVariable.swift @@ -157,7 +157,9 @@ internal extension ServiceModelCodeGenerator { return fieldValue } - private func getMapFieldValue(lengthConstraint: LengthRangeConstraint, valueType: String, + private func getMapFieldValue(lengthConstraint: LengthRangeConstraint, + keyType: String, + valueType: String, fileBuilder: FileBuilder) -> String { let fieldValue: String @@ -173,8 +175,14 @@ internal extension ServiceModelCodeGenerator { // create a map that satifies at least the minimum constraint var mapConstructor: [String] = [] let defaultValue = getDefaultValue(type: valueType, fileBuilder: fileBuilder) - for index in 0..