Comments (13)
I am a first time contributor, and I would like to contribute to this. How can I get started?
from ditiow.
Also, is this supposed to be Address or Point as the type parameter?
Address is the business entity so you need to inform Address as type. Is it right @ahmadmoawad ?
from ditiow.
we don't have a map conversion so if a map has a Resource as a value Ditiow will not detect it.
This feature is very similar to the collection conversion. You can take a look at assemblyMap method.
Tks
from ditiow.
Ok thanks @marcosvidolin . Is there any setup guide i could follow to run and test this on my machine?
from ditiow.
Hi @akshitproothi you can check the setup guide at README and run ./gradew test to execute all tests from terminal
from ditiow.
Ok, thanks. Taking a look.
from ditiow.
@marcosvidolin Do you also want me to update the getFieldGenericType method?
I am unable to test my changes unless this method handles the value type of a map.
from ditiow.
Also, is this supposed to be Address or Point as the type parameter?
from ditiow.
@marcosvidolin Do you also want me to update the getFieldGenericType method?
I am unable to test my changes unless this method handles the value type of a map.
Yeah, please.
from ditiow.
One more thing @marcosvidolin @ahmadmoawad : In this code , I noticed that the AddressResource is there but the list of points is not a List of PointResource but a List of Point . Shouldn't the UserGetResource only include subtypes of AbstractResource? The code here used for the ResourceAssemblerTest doesn't populate that list either so it skips the test for that field (which would fail here because of type mismatch)
from ditiow.
Created a PR for the map conversion. Please let me know about the above questions i asked, and if you need me to make any changes related to those.
from ditiow.
One more thing @marcosvidolin @ahmadmoawad : In this code , I noticed that the AddressResource is there but the list of points is not a List of PointResource but a List of Point . Shouldn't the UserGetResource only include subtypes of AbstractResource? The code here used for the ResourceAssemblerTest doesn't populate that list either so it skips the test for that field (which would fail here because of type mismatch)
Yes, you are right! It should be an AbstractResource.
from ditiow.
Created a PR for the map conversion. Please let me know about the above questions i asked, and if you need me to make any changes related to those.
Thank you @akshitproothi for the improvements.
I'll review and merge it. 😎
from ditiow.
Related Issues (13)
- Implement tests HOT 10
- New annotation to map attribute name HOT 1
- Convert all properties (AbstractResource) of a Resource
- Adjust domain conversion to consider all AbstractResource fields
- Github pages
- Create Github ditiow.io for the repository HOT 2
- Add implementation to Retrofit Android
- CI/CD with github actions HOT 1
- Pratical code sample
- Ignore the properties of a ResponseResource at runtime
- Error casting collection at response resource
- Badges not displaying in the README
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ditiow.