Documentation
¶
Index ¶
- type JSchema
- func (s *JSchema) AddRule(n string, r schema.Rule) error
- func (s *JSchema) AddType(name string, sc schema.Schema) (err error)
- func (s *JSchema) AddUserTypeName(name string)
- func (s *JSchema) BuildASTNode() schema.ASTNode
- func (s *JSchema) Check() (err error)
- func (s *JSchema) CollectUserTypes()
- func (s *JSchema) Compile() error
- func (s *JSchema) Example() (b []byte, err error)
- func (s *JSchema) GetAST() (an schema.ASTNode, err error)
- func (s *JSchema) InnerTypesList() map[string]ischema.Type
- func (s *JSchema) Len() (uint, error)
- func (s *JSchema) UsedUserTypes() ([]string, error)
- type Option
- type StringSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSchema ¶
type JSchema struct { File *fs.File Inner *ischema.ISchema Rules map[string]schema.Rule UsedUserTypes_ *StringSet // TODO private LenOnce sync.ErrOnceWithValue[uint] LoadOnce sync.ErrOnce CompileOnce sync.ErrOnce ASTNode schema.ASTNode AreKeysOptionalByDefault bool }
func (*JSchema) AddUserTypeName ¶
func (*JSchema) BuildASTNode ¶
func (*JSchema) CollectUserTypes ¶
func (s *JSchema) CollectUserTypes()
func (*JSchema) UsedUserTypes ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.