diff --git a/schema/testdata/validation_set_attribute_ctx_identity_invalid_fields/errors.json b/schema/testdata/validation_set_attribute_ctx_identity_invalid_fields/errors.json index 2c574ab38..46fa1ac9d 100644 --- a/schema/testdata/validation_set_attribute_ctx_identity_invalid_fields/errors.json +++ b/schema/testdata/validation_set_attribute_ctx_identity_invalid_fields/errors.json @@ -6,67 +6,33 @@ "code": "E020", "pos": { "filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel", - "offset": 186, - "line": 9, + "offset": 160, + "line": 8, "column": 55 }, "endPos": { "filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel", - "offset": 193, - "line": 9, + "offset": 167, + "line": 8, "column": 62 } }, - { - "message": "Cannot compare Password with operator '='", - "hint": "Did you mean ?", - "code": "E027", - "pos": { - "filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel", - "offset": 235, - "line": 10, - "column": 41 - }, - "endPos": { - "filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel", - "offset": 236, - "line": 10, - "column": 42 - } - }, { "message": "'unknown' not found on 'Identity'", "hint": "Did you mean one of email, emailVerified, password, externalId, issuer, id, createdAt, or updatedAt?", "code": "E020", "pos": { "filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel", - "offset": 356, - "line": 13, + "offset": 264, + "line": 11, "column": 55 }, "endPos": { "filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel", - "offset": 363, - "line": 13, + "offset": 271, + "line": 11, "column": 62 } - }, - { - "message": "Cannot compare Password with operator '='", - "hint": "Did you mean ?", - "code": "E027", - "pos": { - "filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel", - "offset": 405, - "line": 14, - "column": 41 - }, - "endPos": { - "filename": "testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel", - "offset": 406, - "line": 14, - "column": 42 - } } ] } \ No newline at end of file diff --git a/schema/testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel b/schema/testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel index daaef32c3..a8f3dc9f4 100644 --- a/schema/testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel +++ b/schema/testdata/validation_set_attribute_ctx_identity_invalid_fields/schema.keel @@ -1,17 +1,14 @@ model UserExtension { fields { unknown Text - password Password } actions { create createExt() { @set(userExtension.unknown = ctx.identity.unknown) - @set(userExtension.password = ctx.identity.password) } - update updateExt(id) { + update updateExt(id) { @set(userExtension.unknown = ctx.identity.unknown) - @set(userExtension.password = ctx.identity.password) } } } \ No newline at end of file