Skip to content

Commit e04fca8

Browse files
authored
Merge pull request #453 from nnbu/status_type
Generate code for custom status field
2 parents dcb9fd6 + 03237a5 commit e04fca8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/model/model.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,13 @@ func (m *Model) GetCRDs() ([]*CRD, error) {
277277
)
278278
panic(msg)
279279
}
280+
} else if fieldConfig.Type != nil {
281+
// We have a custom field that has a type override and has not
282+
// been inferred via the normal Create Input shape or via the
283+
// SourceFieldConfig. Manually construct the field and its
284+
// shape reference here.
285+
typeOverride := *fieldConfig.Type
286+
memberShapeRef = m.SDKAPI.GetShapeRefFromType(typeOverride)
280287
} else {
281288
// Status field is not well defined
282289
continue

0 commit comments

Comments
 (0)