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

feat: Improve validation result and generate json path #103

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a170025
feat: Return function name on validation error
LoisSotoLopez Jan 11, 2024
8abeaba
wip: Use JSON Path function names & describe error
LoisSotoLopez Jan 12, 2024
5806fb9
wip: Makes validation err triple a tuple
LoisSotoLopez Jan 15, 2024
9042c2e
wip: Improves paths & required error
LoisSotoLopez Jan 16, 2024
606b069
wip: Pass tests & improve eval. conditions error
LoisSotoLopez Jan 17, 2024
114309d
wip: Make 25 & 26 tests pass
LoisSotoLopez Jan 19, 2024
2f4d728
wip: Remove all_of from paths
LoisSotoLopez Jan 19, 2024
e592c98
wip: Fix string, number and object options
LoisSotoLopez Jan 23, 2024
00b6e4e
feat: Redesign error messages & cleanup code
LoisSotoLopez Jan 24, 2024
40fbe6c
feat: Remove unnecessary lists:flatten
LoisSotoLopez Jan 24, 2024
d95aca5
feat: Use `evaluated` io invented word `evalue`
LoisSotoLopez Jan 24, 2024
b380a8d
feat: Add copyright header
LoisSotoLopez Jan 24, 2024
4236188
chore: Move internal function to proper section
LoisSotoLopez Jan 24, 2024
db7ebd9
chore: Make gradualizer pass
LoisSotoLopez Jan 24, 2024
ea01371
feat: Return proper message on unique items
LoisSotoLopez Jan 25, 2024
2689123
chore: Handle unique items error & cleanup code
LoisSotoLopez Jan 25, 2024
ab947ab
experiment: Remove diferentiation between OTP vers
LoisSotoLopez Feb 5, 2024
bcb21dd
experiment: Make evaluate_conditions specs clearer
LoisSotoLopez Feb 5, 2024
9a3f5f0
experiment: Change `function_co...` to `fa_co...`
LoisSotoLopez Feb 5, 2024
8dbb4fd
chore: remove last `[report]` from ndto calls
LoisSotoLopez Feb 7, 2024
4b9320a
experiment: Use proper error msg on `false` schema
LoisSotoLopez Feb 7, 2024
3ee9c7e
experiment: Rename some utils functions
LoisSotoLopez Feb 7, 2024
a4c4101
chore: Simplify `ndto_utils` & `chain_conditions`
LoisSotoLopez Feb 7, 2024
25cf707
chore: Reorganize utils to remove functions
LoisSotoLopez Feb 8, 2024
39c2d18
chore: Rewrite `ndto_utils:find` & `find_value`
LoisSotoLopez Feb 8, 2024
f68b239
chore: Reorganize `ndto_utils` functions
LoisSotoLopez Feb 8, 2024
e0e118c
chore: Type funct. names as functions for gradual.
LoisSotoLopez Feb 8, 2024
97fa7a8
chore: some simplifications and styles
javiergarea Feb 8, 2024
30bd1a5
fix: forgot to add the new module to stage
javiergarea Feb 8, 2024
7dc1340
chore: Rename FunPieces & simplify chain conds.
LoisSotoLopez Feb 8, 2024
8390469
Update test/ndto_SUITE.erl
LoisSotoLopez Feb 8, 2024
730b869
Apply suggestions from code review
LoisSotoLopez Feb 8, 2024
a12f246
feat: Add njson to app.src & remove pattern quotes
LoisSotoLopez Feb 8, 2024
544fb7b
Update test/ndto_SUITE.erl
LoisSotoLopez Feb 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,6 @@
{xref_ignores, [
ndto,
ndto_parser,
ndto_parser_json_schema
ndto_parser_json_schema,
ndto_validation
]}.
2 changes: 1 addition & 1 deletion src/ndto.app.src
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
{description, "Erlang library for DTOs validation"},
{vsn, "0.1.0"},
{registered, []},
{applications, [kernel, stdlib, compiler, syntax_tools]},
{applications, [kernel, stdlib, compiler, njson, syntax_tools]},
{env, []}
]}.
Loading
Loading