Skip to content

Commit

Permalink
Update test/ndto_SUITE.erl
Browse files Browse the repository at this point in the history
Co-authored-by: Javier Garea <[email protected]>
  • Loading branch information
LoisSotoLopez and javiergarea authored Feb 8, 2024
1 parent a12f246 commit 544fb7b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/ndto_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -440,18 +440,13 @@ petstore(_Conf) ->
"oas/3.0/specs/oas_3_0.json"
)
),
os:cmd("mkdir generated/"),
{ok, [{PetstoreDTO, _Schema} | _Rest] = Schemas} = ndto_parser:parse(
ndto_parser_json_schema,
SpecPath
),
lists:foreach(
fun({SchemaName, Schema}) ->
DTO = ndto:generate(SchemaName, Schema),
file:write_file(
<<"generated/", (atom_to_binary(SchemaName))/binary, ".erl">>,
erl_prettypr:format(DTO)
),
ok = ndto:load(DTO)
end,
Schemas
Expand Down

0 comments on commit 544fb7b

Please sign in to comment.