(typeName: string, fieldName: string, fieldType: string)
| 2453 | } |
| 2454 | |
| 2455 | function goUnionFieldUnmarshalAssignment(typeName: string, fieldName: string, fieldType: string): string { |
| 2456 | if (goTypeIsPointer(fieldType)) { |
| 2457 | return `*r = ${typeName}{${fieldName}: &value}`; |
| 2458 | } |
| 2459 | return `*r = ${typeName}{${fieldName}: value}`; |
| 2460 | } |
| 2461 | |
| 2462 | function goPrimitiveSchemaTypeName(schema: JSONSchema7, ctx: GoCodegenCtx): string | undefined { |
| 2463 | const resolved = resolveSchema(schema, ctx.definitions) ?? schema; |
no test coverage detected
searching dependent graphs…