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

[FCL-361] Add new types to utils to express NCNs and related concepts #191

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

jacksonj04
Copy link
Collaborator

Utils sets up the basis for our understanding of what a Neutral Citation is, how they relate to courts, and what valid NCN-based URIs look like. It is logical that the underlying types for these things emerge from Utils and are then used downstream to enforce consistency.

Utils will need to play host to multiple new types which explicitly describe concepts relating to courts; the existing autogenerated types from the schema should logically live in the same place, which is a new submobule.

This should not affect downstream consumers of the package, as these court types are only used internally.
These new types explicitly allow us to state "this string represents a Neutral Citation" and "this string represents a URI we have derived from a Neutral Citation". They will replace types serving a similar function in API Client, giving us full end-to-end type integrity for NCNs and derived-URIs for the first time.

BREAKING CHANGE: Existing calls to `neutral_url()` will need to be made type-aware in all downstream projects where typechecking is used.
@jacksonj04 jacksonj04 marked this pull request as ready for review October 2, 2024 10:01
@jacksonj04 jacksonj04 added this pull request to the merge queue Oct 2, 2024
Merged via the queue into main with commit 30a5edc Oct 2, 2024
6 checks passed
@jacksonj04 jacksonj04 deleted the chore/more-types branch October 2, 2024 10:13
@jacksonj04 jacksonj04 changed the title Add new types to utils to express NCNs and related concepts [FCL-361] Add new types to utils to express NCNs and related concepts Oct 2, 2024
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