Skip to content

Commit b338e3f

Browse files
Update pkg/crd/schema.go
Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
1 parent 1bf22cb commit b338e3f

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
@@ -284,7 +284,7 @@ func localNamedToSchema(ctx *schemaContext, ident *ast.Ident) *apiext.JSONSchema
284284
var member = &ctx.info.EnumValues[i]
285285
var v *ast.BasicLit
286286
if v, ok = member.Values[0].(*ast.BasicLit); !ok {
287-
ctx.pkg.AddError(loader.ErrFromNode(errors.New("constants for a +enum decorated type should be stirngs"), ident))
287+
ctx.pkg.AddError(loader.ErrFromNode(errors.New("constants for a +enum decorated type should be strings"), ident))
288288
}
289289
var value string
290290
if value, err = strconv.Unquote(v.Value); err != nil {

0 commit comments

Comments
 (0)