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

corrected field name on protocols.configure() #121

Merged
merged 1 commit into from
Jun 14, 2023
Merged

corrected field name on protocols.configure() #121

merged 1 commit into from
Jun 14, 2023

Conversation

angiejones
Copy link
Contributor

changed dataFormat:string to dataFormats:string[] based on ProtocolType:

export type ProtocolType = {
  schema?: string,
  dataFormats?: string[],
};

@codecov
Copy link

codecov bot commented Jun 11, 2023

Codecov Report

Merging #121 (64e2436) into main (6d380d9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #121   +/-   ##
=======================================
  Coverage   66.05%   66.05%           
=======================================
  Files          31       31           
  Lines        3456     3456           
  Branches      195      195           
=======================================
  Hits         2283     2283           
  Misses       1171     1171           
  Partials        2        2           
Components Coverage Δ
crypto 0.00% <ø> (ø)
dids 48.61% <ø> (ø)
web5 81.32% <ø> (ø)
web5-agent 0.00% <ø> (ø)
web5-proxy-agent 0.00% <ø> (ø)
web5-user-agent 79.63% <ø> (ø)

Copy link
Contributor

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@@ -325,7 +325,7 @@ The `configure` request object is composed as follows:
- **`protocol`** - _`URI string`_: a URI that represents the protocol being configured.
- **`types`** - _`object`_: an object that defines the records that can be used in the `structure` graph of the `definition` object. The following properties are optional constraints you can set for the type being defined:
- **`schema`** - _`URI string`_ (_optional_): the URI of the schema under which the record will be bucketed.
- **`dataFormat`** - _`Media Type string`_ (_optional_): the IANA string corresponding with the format of the data the record will be bucketed. See IANA's Media Type list here: https://www.iana.org/assignments/media-types/media-types.xhtml
- **`dataFormats`** - _`Media Type string[]`_ (_optional_): Array of the IANA strings corresponding with the formats of the data the record will be bucketed. See IANA's Media Type list here: https://www.iana.org/assignments/media-types/media-types.xhtml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@csuwildcat does "bucketed" make sense to use in the case of describing the purpose of dataFormats specified as a constraint on prototype types?

@frankhinek frankhinek merged commit 892c080 into decentralized-identity:main Jun 14, 2023
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.

3 participants