remondis-it / pact-consumer-builder

Library for generating pact consumer expectations from java beans
Apache License 2.0
14 stars 6 forks source link

Wrong representation of "literals" in a collection #12

Closed schuettec closed 4 years ago

schuettec commented 4 years ago

When translating a Java Bean with a field List<Long> list; to PACT-Json, the result is wrong: {"list":[{"list":0}]}. The library treats primitives like object references even in cases were a "literal" is needed. The API for com.remondis.cdc.consumer.pactbuilder.PactDslModifier<T> does not take into account, that a "literal" representation might be needed instead of a field representation.

schuettec commented 4 years ago

Release 0.0.4.