Skip to content

Add template_dir support to template schema - #3686

Merged
lennartkats-db merged 2 commits into
mainfrom
project-dir-setting
Oct 1, 2025
Merged

Add template_dir support to template schema#3686
lennartkats-db merged 2 commits into
mainfrom
project-dir-setting

Conversation

@lennartkats-db

Copy link
Copy Markdown
Contributor

This allows template schemas to reference template files from a different directory using the template_dir property. This enables schema sharing between templates while keeping their template files separate.

Changes

  • Add TemplateDir field to jsonschema.Extension
  • Update template readers to support template_dir resolution
  • Modify template writer to use new LoadSchemaAndTemplateFS interface
  • Add comprehensive tests for template_dir functionality

🤖 Extracted from #3671 with Claude Code

Tests

lennartkats-dband others added 2 commits September 30, 2025 14:30
This allows template schemas to reference template files from a different
directory using the template_dir property. This enables schema sharing
between templates while keeping their template files separate.
Changes:
- Add TemplateDir field to jsonschema.Extension
- Update template readers to support template_dir resolution
- Modify template writer to use new LoadSchemaAndTemplateFS interface
- Add comprehensive tests for template_dir functionality
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
@lennartkats-dblennartkats-db changed the title [draft] Add template_dir support to template schemaAdd template_dir support to template schemaSep 30, 2025
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Sep 30, 2025

Copy link
Copy Markdown
Collaborator

Run: 18129971045

Env✅​pass🔄​flaky🙈​skip
✅​aws linux315533
🔄​aws windows3133532
✅​aws-ucws linux428430
✅​aws-ucws windows429429
✅​azure linux315532
✅​azure windows316531
✅​azure-ucws linux428429
✅​azure-ucws windows429428
✅​gcp linux314534
✅​gcp windows315533
Test Nameaws windows
TestAccept🔄​flaky
TestAccept/bundle/templates/default-python/integration_classic🔄​flaky
TestAccept/bundle/templates/default-python/integration_classic/DATABRICKS_BUNDLE_ENGINE=direct-exp/UV_PYTHON=3.9🔄​flaky

@shreyas-goenkashreyas-goenka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the changes look good to me, other than the missing test. What's the usecase though?

Comment threadlibs/jsonschema/extension.go
@shreyas-goenka
shreyas-goenka self-requested a review October 1, 2025 09:50
@lennartkats-db
lennartkats-db added this pull request to the merge queueOct 1, 2025
Merged via the queue into main with commit 5a78875Oct 1, 2025
13 checks passed
@lennartkats-db
lennartkats-db deleted the project-dir-setting branch October 1, 2025 11:43
denik pushed a commit that referenced this pull request May 20, 2026
This allows template schemas to reference template files from a
different directory using the template_dir property. This enables schema
sharing between templates while keeping their template files separate.
## Changes
- Add TemplateDir field to jsonschema.Extension
- Update template readers to support template_dir resolution
- Modify template writer to use new LoadSchemaAndTemplateFS interface
- Add comprehensive tests for template_dir functionality
🤖 Extracted from #3671 with
[Claude Code](https://claude.ai/code)
## Tests
* Standard unit tests, acceptance tests in
#3671
---------
Co-authored-by: Claude <noreply@anthropic.com>
Sign up for freeto 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.

3 participants

@lennartkats-db@eng-dev-ecosystem-bot@shreyas-goenka