Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleRecursiveTypeFixer ¶
type SimpleRecursiveTypeFixer struct {
// contains filtered or unexported fields
}
SimpleRecursiveTypeFixer removes circular references from types that refer to themselves directly. TODO: If we end up needing more complex cycle detection we can rework TypeWalker to do it, but for now this TODO: is simpler and seems to cover all the cases we need.
func NewSimpleRecursiveTypeFixer ¶
func NewSimpleRecursiveTypeFixer(log logr.Logger) *SimpleRecursiveTypeFixer
func (*SimpleRecursiveTypeFixer) Fix ¶
func (s *SimpleRecursiveTypeFixer) Fix(def astmodel.TypeDefinition) (astmodel.TypeDefinition, error)
Fix checks the supplied definition for a self reference and unrolls it.
func (*SimpleRecursiveTypeFixer) Types ¶
func (s *SimpleRecursiveTypeFixer) Types() astmodel.TypeDefinitionSet
Types returns any new types created by this type fixer
Click to show internal directories.
Click to hide internal directories.