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

Add support for more candid types #26

Merged
merged 1 commit into from
Jun 11, 2024
Merged

Add support for more candid types #26

merged 1 commit into from
Jun 11, 2024

Conversation

nmattia
Copy link
Collaborator

@nmattia nmattia commented Jun 11, 2024

This adds arg support for records (of strings & records).

The arg inference is changed a bit and tested against agent-go's didc-style encoding of strings (e.g. strings like "record {...}").

A couple of helper functions are added to the provider. These are used to encode (did_encode, used mostly in testing and used implicitely when using arg) and annotate values with types (did_text, did_record) to avoid ambiguity (i.e. for soon-to-come principal support).

This adds `arg` support for records (of strings & records).

The arg inference is changed a bit and tested against agent-go's
`didc`-style encoding of strings (e.g. strings like `"record {...}"`).

A couple of helper functions are added to the provider. These are used
to _encode_ (`did_encode`, used mostly in testing and used implicitely
when using `arg`) and _annotate_ values with types (`did_text`,
`did_record`) to avoid ambiguity (i.e. for soon-to-come principal
support).
@nmattia nmattia merged commit f2d75bb into main Jun 11, 2024
21 checks passed
@nmattia nmattia deleted the nm-arg-encode branch June 11, 2024 14:29
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.

1 participant