(schema: JSONSchema7, ctx: GoCodegenCtx)
| 585 | } |
| 586 | |
| 587 | function getGoSharedEventEnvelopeProperties(schema: JSONSchema7, ctx: GoCodegenCtx): GoEventEnvelopeProperty[] { |
| 588 | return getSharedSessionEventEnvelopeProperties(schema, ctx.definitions) |
| 589 | .map((property) => { |
| 590 | const { name, schema, required } = property; |
| 591 | const typeName = resolveGoPropertyType(schema, "SessionEvent", name, required && !getNullableInner(schema), ctx); |
| 592 | |
| 593 | return { |
| 594 | name, |
| 595 | schema, |
| 596 | required, |
| 597 | fieldName: toGoFieldName(name), |
| 598 | typeName, |
| 599 | jsonTag: goJSONTag(name, required, typeName), |
| 600 | description: schema.description, |
| 601 | }; |
| 602 | }); |
| 603 | } |
| 604 | |
| 605 | function emitGoEnvelopeStructField(property: GoEventEnvelopeProperty, includeComment: boolean, wrapComments = true): string[] { |
| 606 | const lines: string[] = []; |
no test coverage detected
searching dependent graphs…