Skip to content

Commit cd96efa

Browse files
committed
docs: document context.name
1 parent fc3f58f commit cd96efa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,8 @@ is a reactive method.
11611161

11621162
Call `myContext.reset()` if you need to reset the validation context, clearing out any invalid field messages and making it valid.
11631163

1164+
`myContext.name` is set to the context name, if it is a named context. Create named contexts by calling `schema.namedContext(name)` or `new ValidationContext(schema, name)`.
1165+
11641166
## Other SimpleSchema Methods
11651167

11661168
Call `MySchema.schema([key])` to get the schema definition object. If you specify a key, then only the schema definition for that key is returned.

0 commit comments

Comments
 (0)