vet/ent/runtime.go
2025-01-29 13:03:42 +05:30

21 lines
748 B
Go

// Code generated by ent, DO NOT EDIT.
package ent
import (
"github.com/safedep/vet/ent/codesourcefile"
"github.com/safedep/vet/ent/schema"
)
// The init function reads all schema descriptors with runtime code
// (default values, validators, hooks and policies) and stitches it
// to their package variables.
func init() {
codesourcefileFields := schema.CodeSourceFile{}.Fields()
_ = codesourcefileFields
// codesourcefileDescPath is the schema descriptor for path field.
codesourcefileDescPath := codesourcefileFields[0].Descriptor()
// codesourcefile.PathValidator is a validator for the "path" field. It is called by the builders before save.
codesourcefile.PathValidator = codesourcefileDescPath.Validators[0].(func(string) error)
}