Skip to content

Fix nullable, required fields#55

Merged
hipstersmoothie merged 1 commit into
ATProtocol-Community:mainfrom
wooorm:wooorm/nullable-required
Jul 7, 2026
Merged

Fix nullable, required fields#55
hipstersmoothie merged 1 commit into
ATProtocol-Community:mainfrom
wooorm:wooorm/nullable-required

Conversation

@wooorm

@wooorm wooorm commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

This is a follow up to GH-52, which caused goat
to emit warnings.
Goat does not want fields to be nullable and optional. But either nullable and required. Or non-nullable and optional.

See: https://github.com/bluesky-social/indigo/blob/dfe5578f/lex/lexlint/lint.go#L330-L340.

Related-to GH-52.

This also regenerates the bundle.ts which picks up a change that landed over the weekend without updating.

This is a follow up to ATProtocol-CommunityGH-52, which caused `goat`
to emit warnings.
Goat does not want fields to be nullable *and* optional.
But either nullable and required. Or non-nullable and optional.

See: <https://github.com/bluesky-social/indigo/blob/dfe5578f/lex/lexlint/lint.go#L330-L340>.

Related-to ATProtocol-CommunityGH-52.

This also regenerates the `bundle.ts` which picks up a change that
landed over the weekend without updating.
@wooorm

wooorm commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Tests and type checks pass locally. Also:

$ pnpm lex:lint
$ node scripts/goat-lex.mjs lex lint
 🟢 lexicons/fyi/atstore/auth/basic.json
 🟢 lexicons/fyi/atstore/auth/thirdPartyReviews.json
 🟢 lexicons/fyi/atstore/directory/getListing.json
 🟢 lexicons/fyi/atstore/directory/searchListings.json
 🟢 lexicons/fyi/atstore/listing/detail.json
 🟢 lexicons/fyi/atstore/listing/favorite.json
 🟢 lexicons/fyi/atstore/listing/review.json
 🟢 lexicons/fyi/atstore/listing/reviewReply.json
 🟢 lexicons/fyi/atstore/profile.json
 🟢 lexicons/fyi/atstore/reviews/listForListing.json
 🟢 lexicons/fyi/atstore/server/describe.json

$ pnpm lex:status
$ node scripts/goat-lex.mjs lex status
 🟢 fyi.atstore.authBasic
 🟢 fyi.atstore.authThirdPartyReviews
 🟣 fyi.atstore.directory.getListing
 🟣 fyi.atstore.directory.searchListings
 🟢 fyi.atstore.listing.detail
 🟢 fyi.atstore.listing.favorite
 🟢 fyi.atstore.listing.review
 🟢 fyi.atstore.listing.reviewReply
 🟢 fyi.atstore.profile
 🟣 fyi.atstore.reviews.listForListing
 🟢 fyi.atstore.server.describe

I see pre-existing lint/formatting stuff?

@hipstersmoothie hipstersmoothie merged commit 1d19617 into ATProtocol-Community:main Jul 7, 2026
3 of 5 checks passed
@hipstersmoothie

Copy link
Copy Markdown
Collaborator

Published!

@wooorm wooorm deleted the wooorm/nullable-required branch July 7, 2026 07:49
wooorm added a commit to wooorm/eurosky-portal that referenced this pull request Jul 7, 2026
* bsky images 1mb -> 2mb
* atstore fixes (ATProtocol-Community/ATStore#55)
* misc
wooorm added a commit to eurosky-social/eurosky-portal that referenced this pull request Jul 7, 2026
* bsky images 1mb -> 2mb
* atstore fixes (ATProtocol-Community/ATStore#55)
* misc
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