Comments (4)
Awesome, Springwolf does support the ModelConverter
mechanism. Just create a bean in the spring context (example: MonetaryAmountConverter
within the add-ons package)
The class in the linked GH comment has quite high complexity and I am unsure about creating a Springwolf plugin at this point, which will require maintenance.
Adding it to Springwolf raises the expectation that the full implementation is tested and works as expected - including resolving issues.
Still, you can add the class to your project.
I am open to re-consider adding it to springwolf, if more people request it.
from springwolf-core.
Hi @ctasada ,
springwolf uses swagger to get the property names.
Even though I use kotlin myself, adding support for one 'external' annotations opens the door to add support for many more annotations.
Besides, iterating through the class hierarchy to identify all annotations and patch the properties names can be tricky.
Multiple alternatives come to mind:
- Get support for the
@SerialName
annotation in swagger itself. - Create some kind of meta-annotation/code-generation/compiler plugin that adds for each
@SerialName
annotation the swagger@JsonProperty
/@Schema
annotation.
Do you have a simple solution in mind?
from springwolf-core.
Agree, I was thinking about maybe something like a Swagger ModelConverter that supports the annotation.
I found this old ticket in SpringDoc which we may use as reference: springdoc/springdoc-openapi#1226
from springwolf-core.
Related Issues (20)
- Spring Cloud Stream consumer with parameterised type not returning the correct payload type HOT 4
- Kafka publishing producer creation fails in Spring Boot 3.2 HOT 3
- AsyncApiDocket bean deprecation HOT 13
- MethodLevelListener does not handle different payloads for same topic/queue
- Extend method annotations with target ANNOTATION_TYPE HOT 3
- Question on generated payload for List of objects (AsyncAPI spec) HOT 4
- Find Listener Methods on Beans that are created by configuration classes
- Spring annotations removed from some classes - problematic for 'old' Spring applications HOT 2
- Indicate in springwolf-ui when no bindings have been defined HOT 1
- Update to AsyncApi spec 3.0 HOT 7
- Using meta annotation throwing exception HOT 1
- DateTime examples in yaml show validation error in https://studio.asyncapi.com/ (issue raised in AsyncAPI Studio) HOT 18
- Markdown support HOT 4
- Add support for Payload Kafka Key Types HOT 3
- When using the same protobuf message for kafka and Rest WS, in swagger api docs Protobuf schema types contain full package name HOT 5
- Cloud-Stream Snapshot Version is not working HOT 1
- Feature to hide buttons inside kafka publish operations HOT 5
- Example in Channel Headers is not shown correctly HOT 1
- Jar missing version 0.10.3 HOT 6
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 springwolf-core.