0.1.0
We are delighted to introduce our new version of library. For more info click on GuardedStruct.
GuardedStruct
The creation of this macro will allow you to build Structs that provide you with a number of important options, including the following:
- Validation
- Sanitizing
- Constructor
- It provides the capacity to operate in a nested style simultaneously.
Suppose you are going to collect a number of pieces of information from the user, and before doing anything else, you are going to sanitize them.
After that, you are going to validate each piece of data, and if there are no issues, you will either display it in a proper output or save it somewhere else.
All of the characteristics that are associated with this macro revolve around cleaning and validating the data.
The features that we list below are individually based on a particular strategy and requirement, but thankfully, they may be combined and mixed in any way that you see fit.
Some of the changes in this version:
Changelog for MishkaDeveloperTools 0.1.0
- Add Guardedstruct macro
- Support nested struct in macro
- Add
derivefor Validation and Sanitization - Add custom validator and main validator
- Add custom validator and main validator from finding in a module
- Add
__struct__,keys,enforce_keysandbuilderfunctions - Add
required_fieldsvalidation with:haltstatus - Add calling nested fields and struct from another module
- Add
Derive.Parser.convert_to_atom_mapto Change string map to atom map - Add
derivefor sanitizing and validatingTrim - Add
derivefor sanitizing and validatingLowercase - Add
derivefor sanitizing and validatingUppercase - Add
derivefor sanitizing and validatingMaxlength - Add
derivefor sanitizing and validatingMinlength - Add
derivefor sanitizing and validating Safe Stringfalseortruevalue - Add
derivefor sanitizing and validatingEmail - Add
derivefor sanitizing and validatingLocation - Add
derivefor sanitizing and validatingDate - Add
derivefor sanitizing and validatingDateTime - Add
derivefor sanitizing and validatingbasic_htmlsanitize - Add
derivefor sanitizing and validatinghtml5sanitize - Add
derivefor sanitizing and validatingmarkdown_htmlsanitize - Add
derivefor sanitizing and validatingstrip_tagssanitize - Add
derivefor sanitizing and validatingRegexrunner - Add
derivefor sanitizing and validatingRange - Add
derivefor sanitizing and validating ValidateURL - Add
derivefor sanitizing and validating ValidateIPV4 - Add
derivefor sanitizing and validating ValidateEnum - Add
derivefor sanitizing and validating ValidateTag - Add
derivefor sanitizing and validating ValidateUUID - Add
derivefor sanitizing and validating ValidateNot empty string - Add
derivefor sanitizing and validating ValidateEqual - Add a
:halterror to filter validations output from showing afterhalterror - Update all dependencies to last version
- Fix tests for Elixir
1.15 - Make all dependencies optional based on user requirements
- improve documents
Special thanks to @pouriya and @samdvr
Full Changelog: 0.0.8...0.1.0