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

Fix more multiplicities by replacing CDDL representing "one or more" with "zero or more" #67

Merged
merged 1 commit into from
Mar 14, 2023

Conversation

fxamacker
Copy link
Owner

Changes

  • Changed composite-type.fields from + to *.
  • Changed restricted-type-value.restrictions from + to *.

Basically, this changes "one or more" to "zero or more" in order to be consistent with what was done in PR #66.

Updates onflow/cadence#2364
Updates #66

Changed composite-type.fields from + to *.
Changed restricted-type-value.restrictions from + to *.

Basically, this changes "one or more" to "zero or more"
in order to be consistent with what was done in:
#66
@fxamacker fxamacker added the bug Something isn't working label Mar 14, 2023
@fxamacker fxamacker self-assigned this Mar 14, 2023
@fxamacker fxamacker merged commit 0606b2d into main Mar 14, 2023
fxamacker added a commit to onflow/cadence that referenced this pull request Mar 14, 2023
Updated Go comments containing CCF specs in CDDL notation. Specifically,
changed CDDL notation representing "one or more" to "zero or more" for:
- composite-value.fields
- composite-type.fields
- composite-type-value.fields

See CCF specification PRs:
- fxamacker/ccf_draft#66
- fxamacker/ccf_draft#67
fxamacker added a commit to onflow/cadence that referenced this pull request Mar 14, 2023
Updated Go comments containing CCF specs in CDDL notation. Specifically,
changed CDDL notation representing "one or more" to "zero or more" for:
- restricted-type.restrictions
- restricted-type-value.restrictions

See CCF specification PRs:
- fxamacker/ccf_draft#66
- fxamacker/ccf_draft#67
fxamacker added a commit to onflow/cadence that referenced this pull request Mar 14, 2023
CCF specs were updated to allow "zero or more" sortable items
rather than "one or more".

Given this, update CCF codec to check for zero items before sorting.

Relevant changes to CCF specification include:
- fxamacker/ccf_draft#66
- fxamacker/ccf_draft#67

Co-authored-by: Bastian Müller <bastian@axiomzen.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant