-
Notifications
You must be signed in to change notification settings - Fork 15
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
Merge new-model-changes feature branch to main #171
Conversation
* adds `Display` for `FullyQualifiedTypeReference` (For Java templates) * adds `TryFrom<serde_json::Value>` for `FullyQualifiedTypeReference` (Used ijn templates) * adds utilities for model changes * adds a `data_model_store` which stores all the data model nodes based on their `FullyQualifiedTypeReference` * adds changes for using the new `DataModelNode` * Adds `From` impls for builder errors to be converted to `CodeGenError` * Modifies test cases for TODOs and removes Rust support * Adds template changes for `Struct`
* Adds changes for Rust templates * Add `string_representation` on `FullyQualifiedTypeReference` which will have namespace represented based on programming language * Add tests for Rust code generation
* adds changes for enum support * adds tests for enum generation * Adds changes for placeholder Rust enum template * Fixes bug for Rust namespace in generated code
…pes in Sequence and Scalar ADT (#163) * Modified generator to fix bug for nested sequence namespace * Modified `fully_qualified_type_ref` method to return `FullyQualifiedTypeReference` Previously this returned `Option<FullyQualifiedTypeReference>` * Modified templates for nested types in sequence * Adds tests for nested enums * Adds changes for using enum in namespace * Adds `NamespaceNode` for `FullyQualifiedName`
* Modifies `generate_code_for_authorities` to traverse through all subdirectories of a schema authority to generate code * Modifies `generate` to generate code for header and inline imports * Adds a change for scalar template * Adds tests for inline and header imports * Remove `--schema` option
use convert_case::{Case, Casing}; | ||
use ion_rs::Value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(🗺️ PR tour) This was changed due to dependency change for ion-schema-rust
which removed reexport of ion-rs
.
} | ||
|
||
fn generate_abstract_data_type( | ||
&mut self, | ||
isl_type_name: &str, | ||
isl_type_name: &String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(🗺️ PR tour) This was changed due to merge where newly introduced method convert_isl_type_def_to_data_model_node
started using &String
Description of changes:
This PR works on merging the
new-model-changes
feature branch to main.List of changes:
Added PR tour for two merge changes, all the commits have a corresponding PR attached to it and already reviewed.
Structure
#138By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.