Skip to content

Conversation

@ogenstad
Copy link
Contributor

@ogenstad ogenstad commented Jan 29, 2026

Adds an invoke task to generate the JSON schema file for .infrahub.yml files, these are the schema files that then gets added to the https://github.com/opsmill/infrahub-jsonschema repo for inclusion in the language server for Yaml.

Currently this task already exists within Infrahub. However that is just something that's remained since before the SDK moved to a git submodule. Creating this command here instead so it's easier to generate the file within its own context.

Summary by CodeRabbit

  • Chores
    • Added development utility for generating repository configuration schema documentation.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 29, 2026

Walkthrough

This change introduces runtime JSON schema generation as a new Invoke task. The modification adds the json module import and a new task function that generates a JSON schema from the repository configuration model. When executed, this task creates the necessary output directory structure and writes the generated schema to a file with proper formatting. The implementation follows the established pattern of existing tasks within the file, integrating with the build infrastructure for schema documentation purposes.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding a new task to generate JSON schema for .infrahub.yml files, which is the primary purpose of this pull request.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@           Coverage Diff           @@
##           stable     #788   +/-   ##
=======================================
  Coverage   80.36%   80.36%           
=======================================
  Files         115      115           
  Lines        9865     9865           
  Branches     1504     1504           
=======================================
  Hits         7928     7928           
  Misses       1415     1415           
  Partials      522      522           
Flag Coverage Δ
integration-tests 41.41% <ø> (ø)
python-3.10 51.36% <ø> (-0.03%) ⬇️
python-3.11 51.38% <ø> (+0.02%) ⬆️
python-3.12 51.38% <ø> (+0.02%) ⬆️
python-3.13 51.36% <ø> (ø)
python-3.14 53.01% <ø> (-0.03%) ⬇️
python-filler-3.12 24.07% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ogenstad ogenstad marked this pull request as ready for review January 29, 2026 09:49
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