Skip to content

Make incident short_id nullable#484

Open
devn wants to merge 1 commit intomasterfrom
nullable-short-id
Open

Make incident short_id nullable#484
devn wants to merge 1 commit intomasterfrom
nullable-short-id

Conversation

@devn
Copy link
Copy Markdown
Contributor

@devn devn commented Apr 8, 2026

Summary

  • Add NullableShortString type to ctim.schemas.common that accepts a string (max 1024 chars) or null
  • Uses f/anything with a registered nilable spec to work around Flanders lacking native nullable support
  • Update incident schema short_id field to use NullableShortString
  • Add nil short_id example and test coverage

Test plan

  • lein test :no-gen passes (43 tests, 416 assertions, 0 failures)
  • Verify CTIA integration handles nullable short_id correctly

Add NullableShortString type to common schemas that accepts either a
string (max 1024 chars) or null. Uses f/anything with a registered
nilable spec to work around Flanders lacking native nullable support.

Update incident schema to use NullableShortString for short_id, add
nil short_id example, and add test coverage for the nullable case.
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.

1 participant