Class JsonSchemaAfterWriteChecker

java.lang.Object
org.restheart.mongodb.interceptors.JsonSchemaBeforeWriteChecker
org.restheart.mongodb.interceptors.JsonSchemaAfterWriteChecker
All Implemented Interfaces:
ConfigurablePlugin, ExchangeTypeResolver<MongoRequest,MongoResponse>, Interceptor<MongoRequest,MongoResponse>, MongoInterceptor, Plugin

public class JsonSchemaAfterWriteChecker extends JsonSchemaBeforeWriteChecker
Checks documents according to the specified JSON schema This intercetor is able to check PATCH requests (excluding bulk PATCH). Other requests are checked by jsonSchemaBeforeWrite It checks the request content against the JSON schema specified by the 'jsonSchema' collection metadata:

{ "jsonSchema": { "schemaId": <schemaId> "schemaStoreDb": <schemaStoreDb> } }

schemaStoreDb is optional, default value is same db
Author:
Andrea Di Cesare <andrea@softinstigate.com>