func (scanner *SchemaScanner) findTypeDefinition(name astmodel.TypeName) (*astmodel.TypeDefinition, bool) {
	result, ok := scanner.definitions[name]
	return result, ok
}
findTypeDefinition looks to see if we have seen the specified definition before, returning its definition if we have.
package jsonast
import (
	"context"
	"fmt"
	"math"
	"math/big"
	"net/url"
	"strings"
	"github.com/devigned/tab"
	"github.com/pkg/errors"
	"k8s.io/klog/v2"
	"github.com/Azure/k8s-infra/hack/generator/pkg/astmodel"
	"github.com/Azure/k8s-infra/hack/generator/pkg/config"
)
type (
	TypeHandler func(ctx context.Context, scanner *SchemaScanner, schema Schema) (astmodel.Type, error)
	UnknownSchemaError struct {
		Schema  Schema
		Filters []string
	}
	SchemaScanner struct {
		definitions   map[astmodel.TypeName]*astmodel.TypeDefinition
		TypeHandlers  map[SchemaType]TypeHandler
		configuration *config.Configuration
		idFactory     astmodel.IdentifierFactory
	}
)