Skip to content
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

Merged
merged 12 commits into from
Nov 1, 2024
Merged

Conversation

desaikd
Copy link
Contributor

@desaikd desaikd commented Nov 1, 2024

* 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
@desaikd desaikd requested a review from popematt November 1, 2024 22:32
use convert_case::{Case, Casing};
use ion_rs::Value;
Copy link
Contributor Author

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,
Copy link
Contributor Author

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

@desaikd desaikd merged commit 7509ba9 into main Nov 1, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants