Skip to content

Commit 5cdde58

Browse files
authored
Merge pull request #104 from nomasystems/build/0-3-0
build: 0.3.0
2 parents 0289028 + 9b7c242 commit 5cdde58

File tree

8 files changed

+1595
-400
lines changed

8 files changed

+1595
-400
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, develop]
66
pull_request:
77

88
env:
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

19-
- uses: webfactory/ssh-agent@v0.7.0
19+
- uses: webfactory/ssh-agent@v0.9.0
2020
with:
2121
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
2222

@@ -25,7 +25,7 @@ jobs:
2525
otp-version: ${{ env.OTP-VERSION }}
2626
rebar3-version: ${{ env.REBAR3-VERSION }}
2727

28-
- uses: actions/cache@v3.2.6
28+
- uses: actions/cache@v4
2929
id: rebar3-cache
3030
with:
3131
path: |
@@ -42,7 +42,7 @@ jobs:
4242

4343
- run: rebar3 test
4444

45-
- uses: test-summary/action@v2
45+
- uses: test-summary/action@v2.2
4646
if: always()
4747
with:
4848
paths: '_build/test/logs/**/report.xml'

.github/workflows/docs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

18-
- uses: webfactory/ssh-agent@v0.7.0
18+
- uses: webfactory/ssh-agent@v0.9.0
1919
with:
2020
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
2121

@@ -24,7 +24,7 @@ jobs:
2424
otp-version: ${{ env.OTP-VERSION }}
2525
rebar3-version: ${{ env.REBAR3-VERSION }}
2626

27-
- uses: actions/cache@v3.2.6
27+
- uses: actions/cache@v4
2828
id: rebar3-cache
2929
with:
3030
path: |

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ ok = ndto:load(DTO).
4141
5. Call the `is_valid/1` function from the generated module to validate your data.
4242
```erl
4343
true = string_schema:is_valid(<<"hello world">>).
44-
false = string_schema:is_valid(<<"hello">>).
45-
false = string_schema:is_valid(<<"hi world">>).
44+
{false, _MinLengthError} = string_schema:is_valid(<<"hello">>).
45+
{false, _PatternError} = string_schema:is_valid(<<"hi world">>).
4646
```
4747

4848
## `ndto` schema language

rebar.config

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,6 @@
6161
{xref_ignores, [
6262
ndto,
6363
ndto_parser,
64-
ndto_parser_json_schema
64+
ndto_parser_json_schema,
65+
ndto_validation
6566
]}.

src/ndto.app.src

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{application, ndto, [
22
{description, "Erlang library for DTOs validation"},
3-
{vsn, "0.2.0"},
3+
{vsn, "0.3.0"},
44
{registered, []},
5-
{applications, [kernel, stdlib, compiler, syntax_tools]},
5+
{applications, [kernel, stdlib, compiler, njson, syntax_tools]},
66
{env, []}
77
]}.

0 commit comments

Comments
 (0)