Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Predefined validations and sanitizers version 0.1.6 #31

Open
1 of 21 tasks
shahryarjb opened this issue Apr 5, 2024 · 0 comments
Open
1 of 21 tasks

Predefined validations and sanitizers version 0.1.6 #31

shahryarjb opened this issue Apr 5, 2024 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Milestone

Comments

@shahryarjb
Copy link
Member

shahryarjb commented Apr 5, 2024

Features:

  • Add optional entry data for validator and main_validator function to be able create condition with full_attrs
  • DECORATORS @something top of field, sub_field, conditional_field and the main macro guardedstruct
  • accept JSON
  • JSON output
  • Get some global keys from __using__ instead of the GuardedStruct macro to make code clear (should be optional)
  • How can get whole macro as list, not just a field
  • Extend from another macro code and add some new fields, can we?
  • Runtime required fields as the builder function entry, it should support nested map
  • Virtual field #29
  • Think how can implement private and readonly field at edit call
  • Mnesia wrapper for Elixir #28
  • Add Crypto helper #33

URL

  • This url exist in our list as using

List

  • Validation of each value of the list, if it is not nested
  • Sorte list
  • List of string values
  • Sanitize of each value of the list
  • List pattern Validation, for example we have a list with 2 items [a, b], first one should a string the other should be a Tuple

Improvement:

  • Delete derive fields which are conditional or sub_field or external module before calling derive pipeline

It helps us not to call again when a parameter is :ok status

Docs

  • We need some tools to create docs of each macro inside developer module
  • Add Mnesia docs and dialyzer, main functions and helpers
@shahryarjb shahryarjb added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Apr 5, 2024
@shahryarjb shahryarjb added this to the 0.1.6 milestone Apr 5, 2024
@shahryarjb shahryarjb self-assigned this Apr 5, 2024
@shahryarjb shahryarjb pinned this issue Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant