Comments (6)
@doljae
Ok, I think it is not a tough issue. Thank you.
I think that it is better to remove a field defaultArbitraryContainerInfo
in GenerateOptions.
Maybe defaultArbitraryContainerSize
too.
Using ArbitraryContainerInfoGenerator
instead.
But should remain LabMonkey's defaultArbitraryContainerInfo
option.
from fixture-monkey.
@doljae
In GenerateOptions
, it returns defaultArbitraryContainerInfo
when no proper ArbitraryContainerInfoGenerator
exists.
I think returning default ArbitraryContainerInfoGenerator
is more better instead of defaultArbitraryContainerInfo
.
So what we have to do is removing defaultArbitraryContainerInfo
option and making defaultArbitraryContainerInfoGenerator
option
from fixture-monkey.
@doljae
It is a bug.
Javax-validation
,Jakarata-validation
modules changes ArbitraryContainerInfoGenerator
for handling @NotEmpty
, @Size
annotations.
You could resolves this problem temporary as below
.pushArbitraryContainerInfoGenerator(
MatcherOperator(
{ true },
ArbitraryContainerInfoGenerator { ArbitraryContainerInfo(minSize, maxSize, false) }
)
)
Thank you for reporting, we resolve this issue as soon as possible!
from fixture-monkey.
@seongahjo
Can I fix this bug?
It might be a little more complicated than this issue, but if it's not too difficult, I'll give it a try 🙂
If the size is too large or already in the works, you, the maintainer, please fix it 🙏
from fixture-monkey.
@seongahjo ,
Could you explain a bit more on what I need to do?
I've done some work on my own, but I think I'm not understanding it very well 😓
from fixture-monkey.
@seongahjo ,
I created a PR for this issue.
I'm not sure I work well, so if you think there's not enough time to fix it myself, then please take this issue.
from fixture-monkey.
Related Issues (20)
- InnerSpec test fails from JDK16 HOT 1
- Using Javax and Jakarta validation plugin together doesn't work HOT 1
- com.navercorp.fixturemonkey.ArbitraryBuilder#apply conflicts with kotlin apply
- Map genericsTypes must be have 2 generics type for key and value HOT 1
- Is there a way for the DefaultNullInjectGenerator to identify annotations with a CLASS retention policy? HOT 5
- support a third-party library or framework type
- support @Digits in JavaxValidationPlugin and JakartaValidationPlugin HOT 2
- Arbitrary always return same value in specific case HOT 2
- Set field for builder that have customizer not work HOT 8
- add a new implementation of StringArbitrary for FixtureMonkey
- apply validation annotations to YearMonth in JavaxValidationPlugin and JakartaValidationPlugin
- support generating lambda type HOT 3
- 'InnerSpec.keys()' Method with Collection Parameter Support
- Random a list of element that has a unique field HOT 4
- Repeated chars HOT 1
- JakartaValidationJavaArbitraryResolver doesn't work properly for properties with @Pattern
- Support generating kotlin.time.Duration HOT 1
- List property in class is always generated with same size
- @NotBlank validation not working properly HOT 1
- Value not being set HOT 2
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 fixture-monkey.