|
@@ -9,6 +9,7 @@ const proxiedObject = jsonSchemaProxy(objectToProxy, inputJsonSchema, outputJson
|
|
|
|
|
|
```
|
|
```
|
|
`proxiedObject.foo = 'some value'` will cause exception in case of failed inSchema validation. Object remains untouched
|
|
`proxiedObject.foo = 'some value'` will cause exception in case of failed inSchema validation. Object remains untouched
|
|
|
|
+
|
|
`let variable = proxiedObject.foo` will give undefined in case of failed outSchema validation.
|
|
`let variable = proxiedObject.foo` will give undefined in case of failed outSchema validation.
|
|
|
|
|
|
`outSchema` can be omitted if you don't need output validation.
|
|
`outSchema` can be omitted if you don't need output validation.
|