shahryarjb
I tried to deliver a series of our client’s CMS built on Elixir at the start of the my small group project, but we recently archived this open-source project and have yet to make plans to rework and expand it. After a long period, a series of macros and functional modules emerged from this project and our other projects, which we are gradually publishing in this library.
The creation of this macro will allow you to build normal/nested 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.
This is the latest macro that I put in this library and it makes good features for you with the help of struct. Please click on the name of this macro to see different examples of it.
-
2. Basic CRUD
Creating basic CRUD; This macro needs to be rewritten and it is a simple macro that can be very useful to save your time.
I will gradually add some other modules and macros that may be useful to this post, please do not hesitate to give me your comments and suggestions.
Links
Hex: mishka_developer_tools | Hex
Documents: MishkaDeveloperTools — Mishka developer tools v0.1.10
Github: GitHub - mishka-group/mishka_developer_tools: Mishka developer tools provides some macros and modules to make creating your elixir application as easy as possible · GitHub
Trending in Announcing
Other Trending Topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 7- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
shahryarjb
The release of version 0.1.1 has taken place. In this edition, we will have a long list of additions, and we have also included a brand new module for access management.
Changelog for MishkaDeveloperTools 0.1.1
derivefor sanitizing and validatingEitherderivefor sanitizing and validatingEnum, improvedderivefor sanitizing and validatingequalexceptionwhen macro is configed forerror: true, only can be called insidesub_fieldandguardedstructmacroauthorized_fieldsvalidating option forsub_fieldandguardedstructmacrofieldwith list of structssub_fieldwith list of structsonautofromauto,on,fromcore keys for list of structsLinks
Github: Release 0.1.1 · mishka-group/mishka_developer_tools · GitHub
Hex: mishka_developer_tools | Hex
shahryarjb
The release of version 0.1.2 has taken place. In this edition, we will have a long list of additions, and we have also included a brand macro for
Conditional field structure.Changelog for MishkaDeveloperTools 0.1.2
atomin case of a mistake or an attack on the system. It could be asecurityissue, please update.Enumderive styleeitherderive styleequalderive stylecustomderive stylecustomfunctionmacro(Multiple states of a field) #21Typespecsforlist(struct())and previous onestruct():string_float:string_float:some_string_floatLinks
Github: Release 0.1.2 · mishka-group/mishka_developer_tools · GitHub
Hex: mishka_developer_tools | Hex
shahryarjb
We are delighted to introduce our new version (0.1.3) of Mishka developer tools library.
RoadMap 0.1.4: Predefined validations and sanitizers version 0.1.4 · Issue #8 · mishka-group/guarded_struct · GitHub
Changelog for MishkaDeveloperTools 0.1.3
Features:
conditional_fieldhintinside deriveconditional_fieldand normalderivedomainkey inside children fieldsnot_flatten_empty,not_flatten_empty_itemas validationnot_emptyandmax_len,min_lenfor list in validation derive.Fixed bugs:
downcasebug instrip_tagsstructinside itselfnilImprovements:
GuardedStructmacro in different filesdialyzerfor GuardedStruct macroGithub: Release 0.1.3 · mishka-group/mishka_developer_tools · GitHub
Hex: mishka_developer_tools | Hex
If you can contribute with me in this way, please contact me
shahryarjb
We are delighted to introduce our new version (0.1.4) of Mishka developer tools library. For more info click on GuardedStruct.
RoadMap 0.1.5: Predefined validations and sanitizers version 0.1.5 · Issue #27 · mishka-group/mishka_developer_tools · GitHub
Changelog for MishkaDeveloperTools 0.1.4
Features:
Support whole entries check derives for struct or structs (external module) (More information: Support whole entries check derives for `struct` or `structs` (external module) · Issue #26 · mishka-group/mishka_developer_tools · GitHub)
Support
deriveandvalidatoronconditional_fieldmacro as entries checkerSupport nested conditional fields(More information: Support nested conditional fields · Issue #7 · mishka-group/guarded_struct · GitHub)Fixed bugs:
hintderiveserrorsdialyzerwarningDocs
Github: Release 0.1.4 · mishka-group/mishka_developer_tools · GitHub
Hex: mishka_developer_tools | Hex
If you can contribute with me in this way, please contact me
shahryarjb
We are delighted to introduce our new version (0.1.5 ) of Mishka developer tools library.
Changelog for MishkaDeveloperTools 0.1.5
Features:
condition_fieldfields inside__information__functionInside module derive, in nested struct we can call fromcalleruuidfromecto__information__functiontimestamp,validated_user?and validationusernameImprovement:
depsmain_validatorand halt the error when we have errors insidevalidatorand not loadmain_validatorNaiveDateTime,DateTime,Datestruct to map parserExtra
Mnesiapagination (infinite_scroll, numerical)MnesiadataGithub: Release 0.1.5 · mishka-group/mishka_developer_tools · GitHub
Hex: mishka_developer_tools | Hex
RoadMap 0.1.6 : Predefined validations and sanitizers version 0.0.2 · Issue #4 · mishka-group/guarded_struct · GitHub
If you can contribute with me in this way, please contact me
Thank you in advance
shahryarjb
We are delighted to introduce our new version (0.1.7 ) of Mishka developer tools library.
Changelog for MishkaDeveloperTools 0.1.7
In the past, it was possible to extend validation and sanitizer functions within the macro itself; however, this was a relatively insignificant addition that was ultimately overwritten. The same opportunity will now be available to you if you include environment in the project.
For example:
I offer my heartfelt apologies for the occurrence of this bug and express my desire to encounter less similar challenges in the future.
Refs:
Based on Mix cannot build a macro library used in another library when macro is called more than once in project modules · Issue #13699 · elixir-lang/elixir · GitHub
Full Changelog: Comparing 0.1.6...0.1.7 · mishka-group/mishka_developer_tools · GitHub
Thank you in advance
shahryarjb
We recently separated the GuardedStruct macro into a standalone library. Please visit its repository for more information.
The Mishka Developer Tools library became a place where I gradually added my helper tools, one of which was the
GuardedStructmacro, which eventually became a fully independent and improved tool. I received two requests to separate this library, along with other reasons, such as deprecating many optional libraries that, if installed, provided an additional validation layer, like for location.Now, all these optional libraries have been removed, and if you’d like to add custom validation, you can easily do so following the library’s documentation. Backward compatibility has also been fully considered, allowing you to use the package with ease.
Hex: guarded_struct | Hex
Installation