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

specs: v3 commit prev as nullable but non-optional #291

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

bnewbold
Copy link
Contributor

Resolve compatibility issues with "nullable and optional" fields in this core data structure with golang.

Background here: bluesky-social/indigo#327

Basically signatures fail to validate in golang if the field is not included but null.

It would have been possible to just remove this field from the spec, or have it be optional (but not nullable) and those would have worked fine with golang, but the boat has basically sailed (tons of existing data in this format). So we'll stick with requiring the field exist, but be nullable.

Copy link
Contributor

@dholms dholms left a comment

Choose a reason for hiding this comment

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

🙌

@bnewbold bnewbold merged commit d604684 into main Feb 15, 2024
1 check passed
@bnewbold bnewbold deleted the bnewbold/repo-v3-nullable-prev branch February 15, 2024 02:15
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.

2 participants