Skip to content

Commit 6f93faf

Browse files
authored
Merge pull request #269 from jwoglom/jwoglom-patch-1
✨ Fix "encountered" typo in error message
2 parents e6d199d + b426eea commit 6f93faf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/crd/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func structToSchema(ctx *schemaContext, structType *ast.StructType) *v1beta1.JSO
328328
jsonTag, hasTag := field.Tag.Lookup("json")
329329
if !hasTag {
330330
// if the field doesn't have a JSON tag, it doesn't belong in output (and shouldn't exist in a serialized type)
331-
ctx.pkg.AddError(loader.ErrFromNode(fmt.Errorf("enountered struct field %q without JSON tag in type %q", field.Name, ctx.info.Name), field.RawField))
331+
ctx.pkg.AddError(loader.ErrFromNode(fmt.Errorf("encountered struct field %q without JSON tag in type %q", field.Name, ctx.info.Name), field.RawField))
332332
continue
333333
}
334334
jsonOpts := strings.Split(jsonTag, ",")

0 commit comments

Comments
 (0)