-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build example for schema: error with SpringWolf 1.4.0, but working fine with 1.2.0 #829
Comments
Hi @pdalfarr, |
Hello, @sam0r040 public record MyRootObject(
MyEnumObject myEnumObject
) {
} @Schema(enumAsRef = true)
public enum MyEnumObject {
VALUE1,
VALUE2
} @Component
public class Producer {
@AsyncPublisher(operation = @AsyncOperation(channelName = "mychannel"))
public void produce(MyRootObject message) {
}
} The problem is that schema name for Also, if you remove the wrapper class |
…springwolfGH-829 Co-authored-by: Timon Back <timonback@users.noreply.github.com>
#953) * feat(common-model-converters): add model converter to handle enumAsRef GH-829 Co-authored-by: Timon Back <timonback@users.noreply.github.com> * test(core): add integration test for enumAsRef Co-authored-by: David Müller <david.mueller@codecentric.de> --------- Co-authored-by: Timon Back <timonback@users.noreply.github.com>
The change is staged for release and will be part of the next release. If you want to try and verify it in your application today, Thank you for the report/contribution! |
The change is available in the latest release. 🎉 Thank you for the report/contribution and making Springwolf better! |
springwolf#953) * feat(common-model-converters): add model converter to handle enumAsRef springwolfGH-829 Co-authored-by: Timon Back <timonback@users.noreply.github.com> * test(core): add integration test for enumAsRef Co-authored-by: David Müller <david.mueller@codecentric.de> --------- Co-authored-by: Timon Back <timonback@users.noreply.github.com>
Describe the bug
Schema generation was working fine with SpringWolf 1.2.0.
I changed version from 1.2.0 to 1.4.0: as a result, my Spring app is working fine, but Springwolf does not work.
See log message and stack trace below.
Dependencies and versions used
SpringWolf 1.2.0 :
SpringWolf 1.4.0: same as above plus:
Code example
No code example
Stack trace and error logs
I see multiple log messages like this :
The text was updated successfully, but these errors were encountered: