Expand description
This module contains the Draft-04 JSON schema typings
{
"type": "object",
"required": ["_id"],
"properties": {
"_id": {}
}
}type and bsonType can be used interchangeably when they
both make sense (i.e. when bsonType maps onto JSON type).
The main [MongodbJsonSchema] struct maps the following cases:
- TypedJsonSchema a full BSON typed schema
- MultipleTypedJsonSchema a full BSON typed schema with multiple types
- AllOfJsonSchema a list of schemas in AND
- AnyOfJsonSchema a list of schemas in OR
- OneOfJsonSchema a list of mutually exclusive schemas
- JsonSchema::Exists when a field exist but no validation is imposed
Structs§
- AllOf
Json Schema - AnyOf
Json Schema - Array
Schema - Multiple
Typed Json Schema - Number
Schema - Object
Schema - OneOf
Json Schema - Shared
Schema - String
Schema
Enums§
- Additional
- Items
- Json
Schema - Number
- Typed
Json Schema - Types
- Integer is not listed here since mongodb does not support it.