From 75015fcfaaf7ec22e4d1c3d7719538a508cd786a Mon Sep 17 00:00:00 2001 From: Mateusz Filipowicz Date: Wed, 26 Feb 2025 07:38:50 +0100 Subject: [PATCH] docs: fix validation documentation mentioning string values instead of int codes --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ad87776..08c7389 100644 --- a/README.md +++ b/README.md @@ -137,9 +137,9 @@ to the UniFi Controller is correct. The validation is based on the regex and val the UniFi Controller API specs extracted from the JAR files. Client supports 3 modes of validation: -- `soft`, `unifi.SoftValidation` (_default_) - will log a warning if any of the fields are invalid before sending the request, but will not stop the request -- `hard`, `unifi.HardValidation` - will return an error if any of the fields are invalid before sending the request -- `disable`, `unifi.DisableValidation` - will disable validation completely +- `unifi.SoftValidation` (_default_) - will log a warning if any of the fields are invalid before sending the request, but will not stop the request +- `unifi.HardValidation` - will return an error if any of the fields are invalid before sending the request +- `unifi.DisableValidation` - will disable validation completely To change the validation mode, you can use the `ValidationMode` field in the client configuration: