-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
in: coreIssues in core supportIssues in core supportin: mappingMapping and conversion infrastructureMapping and conversion infrastructuretype: enhancementA general enhancementA general enhancement
Milestone
Description
Christoph Strobl opened DATAMONGO-1322 and commented
db.createCollection( "contacts", {
validator: { $or:
[
{ phone: { $type: "string" } },
{ email: { $regex: /@mongodb\.com$/ } },
{ status: { $in: [ "Unknown", "Incomplete" ] } }
]
}
} )NOTE: investigate usage if JSR-303 for defining validation to be propagated to the collection
Reference URL: https://docs.mongodb.org/master/release-notes/3.2/#validator
Issue Links:
-
DATAMONGO-1835 Add support for $jsonSchema to Criteria API
-
DATAMONGO-1849 Generate $jsonSchema out of domain type meta information
Referenced from: pull request #525, and commits 0ce34d8, c3dbce4, 36614ef, 2024b30, b00054f, 5947980
1 votes, 3 watchers
Metadata
Metadata
Assignees
Labels
in: coreIssues in core supportIssues in core supportin: mappingMapping and conversion infrastructureMapping and conversion infrastructuretype: enhancementA general enhancementA general enhancement