Skip to content

Improve handling of @default(null) and @nullable#1667

Merged
kubukoz merged 21 commits intodisneystreaming:series/0.19from
ghostbuster91:feat/null-defaults
Apr 14, 2025
Merged

Improve handling of @default(null) and @nullable#1667
kubukoz merged 21 commits intodisneystreaming:series/0.19from
ghostbuster91:feat/null-defaults

Conversation

@ghostbuster91
Copy link
Copy Markdown
Contributor

@ghostbuster91 ghostbuster91 commented Mar 26, 2025

PR Checklist (not all items are relevant to all PRs)

  • Added unit-tests (for runtime code)
  • Added bootstrapped code + smoke tests (when the rendering logic is modified)
  • Added build-plugins integration tests (when reflection loading is required at codegen-time)
  • Added alloy compliance tests (when simpleRestJson protocol behaviour is expanded/updated)
  • Updated dynamic module to match generated-code behaviour (it was the other way around this time)
  • Added documentation
  • Updated changelog

This closes #1581

@ghostbuster91 ghostbuster91 changed the title Change optionality based on value of default trait Improve handling of @default(null) and @nullable Apr 7, 2025
@ghostbuster91 ghostbuster91 marked this pull request as ready for review April 7, 2025 11:03
@kubukoz
Copy link
Copy Markdown
Member

kubukoz commented Apr 7, 2025

dunno why now, but it looks like we got upgraded to the ubuntu 24.04 runners which don't have sbt, gonna have to install it manually now.

https://github.com/neandertech/langoustine/pull/199/files#r2008968475

@ghostbuster91 ghostbuster91 marked this pull request as draft April 7, 2025 12:45
@ghostbuster91 ghostbuster91 marked this pull request as ready for review April 9, 2025 16:15
nullDefault <- List(true, false)
} yield {
test(
s"combinations of required, nullable, and null default ($required, $nullable, $nullDefault)"
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

note this way it is clear when something fails which case is that.

@Baccata
Copy link
Copy Markdown
Contributor

Baccata commented Apr 9, 2025

@ghostbuster91, this ready for review ?

@ghostbuster91
Copy link
Copy Markdown
Contributor Author

@ghostbuster91, this ready for review ?

Yes

@Baccata
Copy link
Copy Markdown
Contributor

Baccata commented Apr 10, 2025

Good work ! Just would like to take advantage of you making changes to this space to add tests to the getDefault function when there are actual non-null default values

@kubukoz kubukoz merged commit d700b28 into disneystreaming:series/0.19 Apr 14, 2025
11 checks passed
@kubukoz
Copy link
Copy Markdown
Member

kubukoz commented Apr 14, 2025

See you in the release 😭

Copy link
Copy Markdown
Member

@kubukoz kubukoz left a comment

Choose a reason for hiding this comment

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

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