(member: JSONSchema7, fieldName: string, parentTypeName: string, ctx: GoCodegenCtx)
| 2434 | } |
| 2435 | |
| 2436 | function goUnionFieldType(member: JSONSchema7, fieldName: string, parentTypeName: string, ctx: GoCodegenCtx): string { |
| 2437 | const memberType = resolveGoPropertyType(member, parentTypeName, fieldName, true, ctx); |
| 2438 | return goTypeWithOptionalPointer(memberType, ctx); |
| 2439 | } |
| 2440 | |
| 2441 | function goUnionFieldMarshalIsSet(fieldName: string, fieldType: string, ctx: GoCodegenCtx): string { |
| 2442 | if (goTypeIsNilable(fieldType, ctx)) { |
no test coverage detected
searching dependent graphs…