Git Product home page Git Product logo

Comments (7)

jhalterman avatar jhalterman commented on July 22, 2024 1

I hope the implementation doesn't need to validate every time, just after the TypeMap is created or changed, if that makes sense? Maybe validateBeforeMap for the configuration name?

from modelmapper.

kibertoad avatar kibertoad commented on July 22, 2024

What is the way to achieve this with validate?..

from modelmapper.

jhalterman avatar jhalterman commented on July 22, 2024

I think the idea behind this issue was that we would automatically run validate before the first ModelMapper.map attempt for some TypeMap which would cause the map attempt to fail if some destination properties are unmapped. Each time the TypeMap changes, we'd need to flag it for validation again the next time ModelMapper.map is called.

from modelmapper.

kibertoad avatar kibertoad commented on July 22, 2024

That's a good idea, actually. Need help to implement that?

from modelmapper.

jhalterman avatar jhalterman commented on July 22, 2024

I'll leave it to @chhsiao90 to consider implementation since he owns the project now. I just wanted to at least share what I was (probably) thinking when I wrote this :)

from modelmapper.

chhsiao90 avatar chhsiao90 commented on July 22, 2024

Recently I'm a little busy at my side project, I'm not sure that I have time to pick this up. PR is welcome๐Ÿ˜„ .

Is that we can describe this issue with Adds a configuration flag, maybe called validateEveryTime, and when we enabled this flag, the modelMapper will validate the map and the destination every time when a mapping action happened.

from modelmapper.

chhsiao90 avatar chhsiao90 commented on July 22, 2024

Got it, that makes sense!

from modelmapper.

Related Issues (20)

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.