We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We may implement a tool converting a JSON into a set of model drafts.
This API call:
{ "personalizations": [ { "to": [ { "email": "john.doe@example.com", "name": "John Doe" } ], "subject": "Hello, World!" } ], "from": { "email": "sam.smith@example.com", "name": "Sam Smith" }, "reply_to": { "email": "sam.smith@example.com", "name": "Sam Smith" } }
may be translated into
data emailuser { email: str name: str } data emailData { to: list[emailuser] subject: str } data { personalizations: list[emailData] from: emailUser reply_to: emailUser }
This may allow us to interoperate with simple REST data providers.
Also we may convert swagger and other popular formats into our models. Kinda related: #19
The text was updated successfully, but these errors were encountered:
@pshirshov How get should deal with follow input?
"from": { "email": "sam.smith@example.com", "name": "Sam Smith" }, "reply_to": { "email": "sam.smith@example.com", "name": "Sam Smith" "extra_field" : "foo" // new field! }
Either:
// One for both inputs data emailUser { email : str name : str extraField : opt[str] }
or
data emailUser { email : str name : str } data emailUserWithExtra { email : str name : str extraField : str }
Sorry, something went wrong.
I guess second one. From what I can see first one requires a complex and fragile heuristic.
pshirshov
ratoshniuk
No branches or pull requests
We may implement a tool converting a JSON into a set of model drafts.
This API call:
may be translated into
This may allow us to interoperate with simple REST data providers.
Also we may convert swagger and other popular formats into our models. Kinda related: #19
The text was updated successfully, but these errors were encountered: