AssignType decorates `doc` with type metadata sourced from this Schema. If `doc` does not conform to the AST structure of this Schema, the returned TypeCheck contains the violations. No other type check is performed.
(doc *yamlmeta.Document)
| 92 | // If `doc` does not conform to the AST structure of this Schema, the returned TypeCheck contains the violations. |
| 93 | // No other type check is performed. |
| 94 | func (s *Schema) AssignType(doc *yamlmeta.Document) schema.TypeCheck { |
| 95 | return s.DocType.AssignTypeTo(doc) |
| 96 | } |
| 97 | |
| 98 | // DefaultDataValues returns a copy of the default values declared in this Schema. |
| 99 | func (s *Schema) DefaultDataValues() *yamlmeta.Document { |
no test coverage detected