recursivetypefixer

package
v0.0.0-...-8ad424e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: MIT Imports: 4 Imported by: 0

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

Fix checks the supplied definition for a self reference and unrolls it.

func (*SimpleRecursiveTypeFixer) Types

Types returns any new types created by this type fixer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL