Skip to content

Conversation

natalialuzuriaga
Copy link
Collaborator

@natalialuzuriaga natalialuzuriaga commented Sep 26, 2025

Cookiecutter: Update code.json generation to reflect current schema

Problem

Currently, code.json generation using cookiecutter doesn't follow the current code.json schema. We would like to update this accordingly.

Solution

  • Update date object calculation to match UTC format like in codejson-generator and GitHub action
  • Update usageType to be an array
  • Various updates to field values and types

Result

Users can run cookiecutter to create a code.json file for their repository that matches the latest V2.0.0 schema

Test Plan

Ran jsonschema cli with generated code.json files against latest schema and passes

@natalialuzuriaga natalialuzuriaga marked this pull request as ready for review October 1, 2025 19:56
@natalialuzuriaga natalialuzuriaga changed the title Update codejson cookiecutter to reflect current schema in tier 0 Update cookiecutter codejson generation to reflect current schema Oct 1, 2025
@natalialuzuriaga natalialuzuriaga changed the title Update cookiecutter codejson generation to reflect current schema Cookiecutter: Update code.json generation to reflect current schema Oct 1, 2025
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