Skip to content

Repositories with an "Other" license lose their license #233

Description

@SeanTAllen

GitHub reports a repository whose license it can't identify as the "Other" license, and that license object has a null url:

{"key": "other", "name": "Other", "spdx_id": "NOASSERTION", "url": null, "node_id": "MDc6TGljZW5zZTA="}

GET /repos/donnemartin/system-design-primer returns exactly that today. License.url is a String, so LicenseJSONConverter raises on it. RepositoryJSONConverter catches that error and sets Repository.license to None, so the repository converts but its license is gone, the same as if it had none.

GitHub's license-simple schema allows url and spdx_id to be null. Making License.url and License.spdx_id (String | None) would let an "Other" license come through. That changes the type of two public fields.

#220 makes malformed optional fields fail the conversion instead of falling back to the default. It leaves Repository.license lenient until this is fixed, because otherwise every repository with an "Other" license would fail to convert.

Activity

  1. added theissue type on Dec 4, 2026
  2. added
    discuss during sync
    on Dec 4, 2026
  3. updated Review Level Medium and Priority Medium on Dec 4, 2026
  4. added
    needs discussion
    on Dec 4, 2026
  5. self-assigned this
    on Dec 5, 2026
  6. changed
    Review Level
    toon Dec 5, 2026
  7. added a commit that references this issue on Dec 5, 2026
    038904e
  8. removed
    discuss during sync
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

needs discussion

Type

Fields

Priority

Medium

Review Level

High

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions