Skip to content

Commit

Permalink
Test DTO generator feature
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Mar 4, 2024
1 parent 18afb7c commit c64e477
Show file tree
Hide file tree
Showing 3 changed files with 468 additions and 14 deletions.
20 changes: 17 additions & 3 deletions config/dto.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="cakephp-dto https://github.com/dereuromark/cakephp-dto">


<!-- Generated from GitHub schema -->

<dto name="Test/Schema/SimpleUser">
<field name="name" type="string"/>
<field name="email" type="string"/>
Expand All @@ -28,6 +31,16 @@
<field name="starredAt" type="string"/>
</dto>

<dto name="Test/Schema/Label">
<field name="id" type="int" required="true"/>
<field name="nodeId" type="string" required="true"/>
<field name="url" type="string" required="true"/>
<field name="name" type="string" required="true"/>
<field name="description" type="string"/>
<field name="color" type="string" required="true"/>
<field name="default" type="bool" required="true"/>
</dto>

<dto name="Test/Schema/Milestone">
<field name="url" type="string" required="true"/>
<field name="htmlUrl" type="string" required="true"/>
Expand Down Expand Up @@ -244,7 +257,7 @@
<field name="title" type="string" required="true"/>
<field name="user" type="Test/Schema/SimpleUser" required="true"/>
<field name="body" type="string"/>
<field name="labels" type="array" required="true"/>
<field name="labels" type="Test/Schema/Label[]" required="true" singular="label" associative="true" key="name"/>
<field name="milestone" type="Test/Schema/Milestone"/>
<field name="activeLockReason" type="string"/>
<field name="createdAt" type="string" required="true"/>
Expand Down Expand Up @@ -277,8 +290,7 @@





<!-- Generated from GitHub example data -->

<dto name="Test/Data/User">
<field name="login" type="string"/>
Expand Down Expand Up @@ -567,4 +579,6 @@
<field name="changedFiles" type="int"/>
</dto>



</dtos>
Loading

0 comments on commit c64e477

Please sign in to comment.