Git Product home page Git Product logo

Comments (13)

akshitproothi avatar akshitproothi commented on July 23, 2024 2

I am a first time contributor, and I would like to contribute to this. How can I get started?

from ditiow.

marcosvidolin avatar marcosvidolin commented on July 23, 2024 1

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.

marcosvidolin avatar marcosvidolin commented on July 23, 2024

Hi @akshitproothi

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.

akshitproothi avatar akshitproothi commented on July 23, 2024

Ok thanks @marcosvidolin . Is there any setup guide i could follow to run and test this on my machine?

from ditiow.

marcosvidolin avatar marcosvidolin commented on July 23, 2024

Hi @akshitproothi you can check the setup guide at README and run ./gradew test to execute all tests from terminal

from ditiow.

akshitproothi avatar akshitproothi commented on July 23, 2024

Ok, thanks. Taking a look.

from ditiow.

akshitproothi avatar akshitproothi commented on July 23, 2024

@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.

akshitproothi avatar akshitproothi commented on July 23, 2024

Also, is this supposed to be Address or Point as the type parameter?

from ditiow.

marcosvidolin avatar marcosvidolin commented on July 23, 2024

@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.

akshitproothi avatar akshitproothi commented on July 23, 2024

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.

akshitproothi avatar akshitproothi commented on July 23, 2024

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.

marcosvidolin avatar marcosvidolin commented on July 23, 2024

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.

marcosvidolin avatar marcosvidolin commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.