Comments (7)
Happy to accept and help guide a PR 🙂 Otherwise, yes, explicit annotations is the workaround
from modelina.
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
from modelina.
Makes sense, taget next
@AayushSaini101 ✌️
from modelina.
I just stumbled over this. I ran asyncapi generate models
and end up with:
Successfully generated the following models: AnonymousSchema1, AnonymousSchema25, AnonymousSchema28, AnonymousSchema31, AnonymousSchema38, AnonymousSchema41, AnonymousSchema44
I would've expected that the file name as well as the class name do use the actual name of the component / message / whatevs. Is there currently no way or do I have to set some extra annotation somewhere?
from modelina.
What annotation would that be?
from modelina.
This would be a breaking change, right?
Any idea where to start? I imagined this to be an easy change but grepping for anonymous
yields only CommonModel and AsyncAPIInputProcessor apart from the tests / examples. It's not apparent to me where AnonymousSchema_N gets generated.
from modelina.
What annotation would that be?
You would have to explicitly define the message payload as the name of the message.
This would be a breaking change, right?
Yes, just target the next
branch 🙂 Unless you want to hide it behind an option.
Any idea where to start? I imagined this to be an easy change but grepping for anonymous yields only CommonModel and AsyncAPIInputProcessor apart from the tests / examples. It's not apparent to me where AnonymousSchema_N gets generated.
All this logic happens in the input processor for AsyncAPI:
from modelina.
Related Issues (20)
- Lonely `additionalProperties` does not generate dictionary type
- Tuple types in marshalling are generated with syntax errors
- Java marshalling preset generate code with syntax errors
- Java jackson preset not serializing dictionary models with unwrap option correctly
- Enable java jackson preset feature to serialize/deserialize unwrappable dictionaries
- [BUG] Pydantic generator does not correctly handle nullable union HOT 3
- [FEATURE] export AbstractDependencyManager to allow overriding HOT 2
- Dead links HOT 2
- Cannot process AsyncAPI YAML document HOT 1
- [BUG] Modelina is creating nested models for pattern properties HOT 1
- [FEATURE] Support marshal / unmarshal enum values to target types in Go generator HOT 6
- Properties with type integer and format int64 generate properties of type int instead of type long using the C# generator HOT 3
- [BUG] Generated JsonConverter tries to Deserialize enums as dynamic in the C# generator HOT 2
- Move isEnum from C# generator to generic helper function
- [BUG] from . import AnonymousSchemaX breaks types (?) HOT 2
- [FEATURE] Adoption of React Query HOT 1
- [generalized validation] Generate code validation rules based on spec for every supported language HOT 1
- [BUG] Data class members name is changed to camel case even if an $Id is provided [Kotlin Generator] HOT 3
- [FEATURE] [Java] Add "additionalModelTypeAnnotations" to enable using Lombok 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 modelina.