Skip to content

Commit

Permalink
fix(code-gen/go): fix issues on combined parent-child
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Sep 25, 2024
1 parent 1fc6afa commit fffa126
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ type ${type.name}Contract interface {

// ${type.name}Requirements provides a set of functions which need to be implemented by a sub struct
type ${type.name}Requirements interface {
<#if type.isDiscriminatedChildTypeDefinition()>
${type.parentType.orElseThrow().name?cap_first}Requirements
</#if>
GetLengthInBits(ctx context.Context) uint16
GetLengthInBytes(ctx context.Context) uint16
<#list helper.discriminatorTypes as discriminatorName, discriminatorType>
Expand Down

0 comments on commit fffa126

Please sign in to comment.