Comments (6)
@jonaslagoni Maybe we should have originalInput
next to originalSchema
? I mean, if we will have processor for graphql data from SDL to JSON Schema, then finally we must process JSON Schema not SDL, so originalSchema
should stay.
from modelina.
Agreed in many cases if ever passed through the JSON Schema input processor it would stay originalSchema
.
However, if you provide another processor which does something completely different XML for example, it does not have to convert the XML into JSON for the JSON Schema input processor but can create the CommonModel representation itself.
Then originalSchema
would not make sense since it would now be originalStructor
or what ever you could call it. Therefore a more neutral name such as originalInput
makes more sense IMO.
from modelina.
This is a one of POV, but here is also a question: why we want to processor xml in custom way, if we have possibility to change xml to json and then process it as JSON Schema? :) OriginalSchema
/OriginalInput
should be also useful to read it from code, using pure GraphQL or XML you haven't this option.
from modelina.
@magicmatatjahu XML is just an example, could by any type of input, with its own InputProcessor
that does not use the JSON Schema simplifier. They could handle their own processing of transforming the input to CommonModels. Which means that OriginalSchema
makes no sense.
from modelina.
This issue has been automatically marked as stale because it has not had recent activity 😴
It will be closed in 60 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
Thank you for your contributions ❤️
from modelina.
🎉 This issue has been resolved in version 0.31.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
from modelina.
Related Issues (20)
- AsyncAPIInputProcessor does not respect schemaFormat of the message HOT 2
- Python generator does not handle self reference types correctly
- schemaMapping configuration to re-use existing model classes HOT 4
- Modelina CLI windows build failing HOT 2
- [BUG] Implement avro schema data type HOT 1
- 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
- [FEATURE] Change the name of the generated model class withe name of message name. HOT 2
- [BUG] Pydantic generator does not correctly handle nullable union HOT 3
- [FEATURE] export AbstractDependencyManager to allow overriding HOT 2
- Cannot process AsyncAPI YAML document HOT 1
- [BUG] Modelina is creating nested models for pattern properties HOT 1
- Dead links HOT 2
- [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
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.