Skip to content

Comments

Add @Required annotation#1556

Draft
fstjohn11 wants to merge 2 commits intoslackapi:mainfrom
fstjohn11:fstj_add_required_annotation
Draft

Add @Required annotation#1556
fstjohn11 wants to merge 2 commits intoslackapi:mainfrom
fstjohn11:fstj_add_required_annotation

Conversation

@fstjohn11
Copy link

@fstjohn11 fstjohn11 commented Feb 23, 2026

Adds a new @Required annotation to the model package for use in marking attributes in model classes as "required". This is so we can annotate attributes of our model classes that are expected to be present on every instance of the object, so developers can safely access without any explicit null checks. Meant to be a drop-in replacement for in-line code comments or javadocs that state the same (but apply no actual enforcement at runtime)

Category (place an x in each of the [ ])

  • bolt (Bolt for Java)
  • bolt-{sub modules} (Bolt for Java - optional modules)
  • slack-api-client (Slack API Clients)
  • slack-api-model (Slack API Data Models)
  • slack-api-*-kotlin-extension (Kotlin Extensions for Slack API Clients)
  • slack-app-backend (The primitive layer of Bolt for Java)

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you agree to those rules.

@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @fst-john to sign the Salesforce Inc. Contributor License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants