Skip to content

Support compiling a specific subschema in compile and validate#646

Merged
jviotti merged 1 commit intomainfrom
blaze-entrypoint
Feb 5, 2026
Merged

Support compiling a specific subschema in compile and validate#646
jviotti merged 1 commit intomainfrom
blaze-entrypoint

Conversation

@jviotti
Copy link
Member

@jviotti jviotti commented Feb 4, 2026

See: #639
Signed-off-by: Juan Cruz Viotti jv@jviotti.com

@jviotti jviotti force-pushed the blaze-entrypoint branch 4 times, most recently from 0fb5060 to 78b7832 Compare February 4, 2026 20:22
@jviotti jviotti marked this pull request as ready for review February 4, 2026 20:23
@augmentcode
Copy link

augmentcode bot commented Feb 4, 2026

🤖 Augment PR Summary

Summary: Adds support for compiling/validating against a specific subschema via a new --entrypoint/-p option.

Changes:

  • Updated CLI docs/usage for compile and validate and added examples for JSON Pointer entrypoints.
  • compile can now bundle/analyze the schema and compile starting from a resolved entrypoint URI.
  • validate now resolves an entrypoint URI and passes it through to template compilation.
  • Introduced resolve_entrypoint helper to normalize pointer/fragment inputs into an absolute entrypoint URI.
  • Added error handling for invalid entrypoints with guidance to use inspect to find valid locations.
  • Added new unit tests covering pointer, fragment-only, and URI entrypoints plus multiple failure modes.

Technical Notes: Pointer and fragment-only entrypoints are converted into an absolute URI by attaching the pointer as the schema root URI fragment before compilation.

🤖 Was this summary useful? React with 👍 or 👎

Copy link

@augmentcode augmentcode bot left a comment

Choose a reason for hiding this comment

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

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

4 issues found across 22 files

Prompt for AI agents (all issues)

Check if these issues are valid — if so, understand the root cause of each and fix them.


<file name="test/validate/pass_entrypoint_pointer_fragment.sh">

<violation number="1" location="test/validate/pass_entrypoint_pointer_fragment.sh:27">
P3: Capture and assert stdout as well as stderr so verbose tests detect unexpected output on either stream.

(Based on your team's feedback about capturing stdout and stderr in verbose tests.) [FEEDBACK_USED]</violation>
</file>

<file name="test/validate/pass_entrypoint_pointer.sh">

<violation number="1" location="test/validate/pass_entrypoint_pointer.sh:27">
P2: Capture and assert stdout as well as stderr in this verbose test; otherwise unexpected stdout output will be missed.

(Based on your team's feedback about capturing stdout and stderr using verbose tests.) [FEEDBACK_USED]</violation>
</file>

<file name="test/validate/pass_entrypoint_uri.sh">

<violation number="1" location="test/validate/pass_entrypoint_uri.sh:28">
P2: Capture stdout as well when running the verbose validate command, and assert it is empty to detect unexpected output.

(Based on your team's feedback about capturing stdout and stderr using verbose tests.) [FEEDBACK_USED]</violation>
</file>

<file name="test/validate/fail_entrypoint_mismatch.sh">

<violation number="1" location="test/validate/fail_entrypoint_mismatch.sh:27">
P3: Capture and assert stdout for the verbose failure case so the test detects unexpected output on either stream.

(Based on your team's feedback about capturing stdout and stderr using verbose tests.) [FEEDBACK_USED]</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

See: #639
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@jviotti jviotti changed the title Support compiling a subschema in compile and validate Support compiling a specific subschema in compile and validate Feb 4, 2026
@jviotti jviotti merged commit 7cf085a into main Feb 5, 2026
13 checks passed
@jviotti jviotti deleted the blaze-entrypoint branch February 5, 2026 15:15
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