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

tfprotov5+tfprotov6: Introduce ValueType() methods for Schema types #158

Merged
merged 2 commits into from
Feb 17, 2022

Commits on Feb 16, 2022

  1. tfprotov5+tfprotov6: Introduce ValueType() methods for Schema types

    Reference: #128
    Reference: #157
    
    This methods implement standard conversion logic from `Schema*` types into their associated `tftypes.Type` equivalent. For example, these can be used to prepare calls to the `(DynamicValue).Unmarshal()` method, which is necessary in many RPCs.
    
    Preferably, these methods would have been named `Type()`, however the `SchemaAttribute` type implements a `Type` field and Go does not permit overlapping field and method names. Instead, the name `ValueType()` was chosen as an alternate designation as the `tftypes.Type` really represents a data value type, instead of a type constraint (sometimes also referred to as a schema type).
    bflad committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    c853687 View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG for #158

    bflad committed Feb 16, 2022
    Configuration menu
    Copy the full SHA
    53f40e5 View commit details
    Browse the repository at this point in the history