Skip to content

Migrate licenses.py to spec + code generation #183

Description

@rtibbles

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

licenses should be generated from a spec in the format #182 introduces. It has no known wrong values, so its public Python API should not change.

Complexity: Low
Target branch: main

Context

  • LICENSELIST ids are ints 1–9, while the constants hold license names (CC_BY = "CC BY"); licenselookup.json keys are the ids as strings.
  • Every License.description is ""; licenselookup.json has no description field.

The Change

  • js/Licenses.js should export the constants as its default export and the license records as a named export.

Acceptance Criteria

AI usage

I made the decisions recorded on #181 and #182; Claude Code applied them to this module against the current code and drafted the issue.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions