Skip to content

Commit 04f88bf

Browse files
author
Tom Barton
authored
fix(collections): rename validation property to schema (#681)
1 parent 0fac132 commit 04f88bf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/collection.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export type CollectionKeyProperties = {
202202
/**
203203
* Properties for validating documents in a collection.
204204
*/
205-
export type ValidationProperties = {
205+
export type SchemaProperties = {
206206
/**
207207
* Type of document validation.
208208
*/
@@ -241,7 +241,7 @@ export type CollectionProperties = {
241241
/**
242242
* Properties for validating documents in the collection.
243243
*/
244-
validation: ValidationProperties | null;
244+
schema: SchemaProperties | null;
245245
/**
246246
* (Cluster only.) Write concern for this collection.
247247
*/
@@ -305,7 +305,7 @@ export type CollectionProperties = {
305305
/**
306306
* Options for validating collection documents.
307307
*/
308-
export type ValidationOptions = {
308+
export type SchemaOptions = {
309309
/**
310310
* JSON Schema description of the validation schema for documents.
311311
*/
@@ -336,7 +336,7 @@ export type CollectionPropertiesOptions = {
336336
/**
337337
* Options for validating documents in this collection.
338338
*/
339-
validation?: ValidationOptions;
339+
schema?: SchemaOptions;
340340
/**
341341
* (MMFiles only.) Maximum size for each journal or datafile in bytes.
342342
*
@@ -433,7 +433,7 @@ export type CreateCollectionOptions = {
433433
/**
434434
* Options for validating documents in the collection.
435435
*/
436-
validation?: ValidationOptions;
436+
schema?: SchemaOptions;
437437
/**
438438
* (Cluster only.) Unless set to `false`, the server will wait for all
439439
* replicas to create the collection before returning.

0 commit comments

Comments
 (0)