-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add new_type
API for Schema
#207
Comments
Our usecase is that we take in a single Ion struct which is might not contains the Without this we have to do the walk around to synthesize an ion struct with type annotation and type to read as ion schema and get the anonymous type. This reduces integrity of our code and we likely to remove the code once this feature is released. Can you prioritize on your end? Thanks! |
@liguoso I want to understand more about your usecase here. |
As per an offline discussion, Proposed solution: let isl_type: IslType = load_isl_type(r#"{ codepoint_length: 12 }"#)?;
let isl_constraints = isl_type.constraints();
// perform your own custom validation logic |
Schema
doesn't have an API to add new types to it. Similar toion-schema-kotlin
newType, provide a way to add new types toSchema
.The text was updated successfully, but these errors were encountered: