|
|
@@ -55,6 +55,7 @@ final class GeneratorOptions {
|
|
|
private(set) var generateServer = true
|
|
|
private(set) var generateClient = true
|
|
|
private(set) var generateTestClient = false
|
|
|
+ private(set) var generatePayloadConformance = true
|
|
|
private(set) var protoToModuleMappings = ProtoFileToModuleMappings()
|
|
|
private(set) var fileNaming = FileNaming.FullPath
|
|
|
private(set) var extraModuleImports: [String] = []
|
|
|
@@ -90,6 +91,13 @@ final class GeneratorOptions {
|
|
|
throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)
|
|
|
}
|
|
|
|
|
|
+ case "PayloadConformance":
|
|
|
+ if let value = Bool(pair.value) {
|
|
|
+ self.generatePayloadConformance = value
|
|
|
+ } else {
|
|
|
+ throw GenerationError.invalidParameterValue(name: pair.key, value: pair.value)
|
|
|
+ }
|
|
|
+
|
|
|
case "ProtoPathModuleMappings":
|
|
|
if !pair.value.isEmpty {
|
|
|
do {
|