remondis-it / pact-consumer-builder

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

Support for Java 17 Records possible? #35

Open ppetershagen opened 2 years ago

ppetershagen commented 2 years ago

Today, while trying to generate a Pact DSL from domain model classes, I noticed the NotAJavaBean exception which was raised due to Java 17 Record classes. As you might know, Records only include getters without the get, no setters as they are immutable. However, as this is a major, new Java data type, it would make sense to support records as well.

Is there a way, to get the generator working with records? If not, I would like to ask you to add this as a feature request.

Cheers, Paul