Skip to content

Mark orphaned locations in the inspect command as orphan#636

Merged
jviotti merged 1 commit intomainfrom
core-orphan
Jan 29, 2026
Merged

Mark orphaned locations in the inspect command as orphan#636
jviotti merged 1 commit intomainfrom
core-orphan

Conversation

@jviotti
Copy link
Member

@jviotti jviotti commented Jan 28, 2026

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

Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
@augmentcode
Copy link

augmentcode bot commented Jan 28, 2026

🤖 Augment PR Summary

Summary: This PR surfaces “orphan” schema locations in the inspect command output to help identify unreferenced parts of a schema.

Changes:

  • Extend SchemaFrame::Location with an orphan boolean and propagate it while building the frame
  • Emit the orphan flag in SchemaFrame::to_json() for JSON-form inspect output
  • Print an “Orphan” line for each framed location in the text inspect output
  • Update all inspect golden tests (text and JSON) to include the new field
  • Refresh the vendored core dependency and adjust EmptyObjectAsTrue to not reframe after transform

Technical Notes: The new flag is expected to be computed during frame/iterator analysis and is reported consistently across location kinds.

🤖 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. No suggestions at this time.

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

@jviotti jviotti merged commit b268e52 into main Jan 29, 2026
13 checks passed
@jviotti jviotti deleted the core-orphan branch January 29, 2026 13:43
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Feb 15, 2026
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [sourcemeta/jsonschema](https://github.com/sourcemeta/jsonschema) | minor | `v14.5.0` → `v14.10.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>sourcemeta/jsonschema (sourcemeta/jsonschema)</summary>

### [`v14.10.0`](https://github.com/sourcemeta/jsonschema/releases/tag/v14.10.0)

[Compare Source](sourcemeta/jsonschema@v14.9.0...v14.10.0)

#### What's Changed

- Implement a `--frozen` option for the `install` command by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;656](sourcemeta/jsonschema#656)

**Full Changelog**: <sourcemeta/jsonschema@v14.9.0...v14.10.0>

### [`v14.9.0`](https://github.com/sourcemeta/jsonschema/releases/tag/v14.9.0)

[Compare Source](sourcemeta/jsonschema@v14.8.0...v14.9.0)

#### What's Changed

- Support adding new dependencies in `install` by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;655](sourcemeta/jsonschema#655)

**Full Changelog**: <sourcemeta/jsonschema@v14.8.0...v14.9.0>

### [`v14.8.0`](https://github.com/sourcemeta/jsonschema/releases/tag/v14.8.0)

[Compare Source](sourcemeta/jsonschema@v14.7.2...v14.8.0)

#### What's Changed

- Implement an `install` command by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;654](sourcemeta/jsonschema#654)
  - Note: this is a first take on the problem. More improvements coming very soon!

**Full Changelog**: <sourcemeta/jsonschema@v14.7.2...v14.8.0>

### [`v14.7.2`](https://github.com/sourcemeta/jsonschema/releases/tag/v14.7.2)

[Compare Source](sourcemeta/jsonschema@v14.7.1...v14.7.2)

#### What's Changed

- Improve I/O error handling for when dealing with FUSE filesystems by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;651](sourcemeta/jsonschema#651)

**Full Changelog**: <sourcemeta/jsonschema@v14.7.1...v14.7.2>

### [`v14.7.1`](https://github.com/sourcemeta/jsonschema/releases/tag/v14.7.1)

[Compare Source](sourcemeta/jsonschema@v14.7.0...v14.7.1)

#### What's Changed

- Speed up `default`/`examples` linting on standalone schemas by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;647](sourcemeta/jsonschema#647)
- Publish the `musl` x86-64 binary to NPM by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;649](sourcemeta/jsonschema#649)

**Full Changelog**: <sourcemeta/jsonschema@v14.7.0...v14.7.1>

### [`v14.7.0`](https://github.com/sourcemeta/jsonschema/releases/tag/v14.7.0)

[Compare Source](sourcemeta/jsonschema@v14.6.1...v14.7.0)

#### What's Changed

- Support formatting in the `lint` command using `--format` by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;642](sourcemeta/jsonschema#642)
- Print simple progress status when running `lint --fix` by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;644](sourcemeta/jsonschema#644)
- Support compiling a specific subschema in `compile` and `validate` by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;646](sourcemeta/jsonschema#646)

**Full Changelog**: <sourcemeta/jsonschema@v14.6.1...v14.7.0>

### [`v14.6.1`](https://github.com/sourcemeta/jsonschema/releases/tag/v14.6.1)

[Compare Source](sourcemeta/jsonschema@v14.6.0...v14.6.1)

#### What's Changed

- Fix a lint `$dynamicAnchor` crash introduced in previous optimisations by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;640](sourcemeta/jsonschema#640)

**Full Changelog**: <sourcemeta/jsonschema@v14.6.0...v14.6.1>

### [`v14.6.0`](https://github.com/sourcemeta/jsonschema/releases/tag/v14.6.0)

[Compare Source](sourcemeta/jsonschema@v14.5.0...v14.6.0)

#### What's Changed

- Remove NPM `postinstall` script as newer version of NPM no longer print the message by [@&#8203;Karan-Palan](https://github.com/Karan-Palan) in [#&#8203;633](sourcemeta/jsonschema#633)
- Do not report non-fixable rules multiple times on `lint --fix` and add various new linter rules by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;634](sourcemeta/jsonschema#634)
- Optimise `lint --fix` to avoid re-analysing the schema in vain by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;635](sourcemeta/jsonschema#635)
- Mark orphaned locations in the `inspect` command as `orphan` by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;636](sourcemeta/jsonschema#636)
- Speed up linting of `default` and `examples` by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;637](sourcemeta/jsonschema#637)
- Speed up schema compilation, linting, and bundling by [@&#8203;jviotti](https://github.com/jviotti) in [#&#8203;638](sourcemeta/jsonschema#638)

**Full Changelog**: <sourcemeta/jsonschema@v14.5.0...v14.6.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45Ni4yIiwidXBkYXRlZEluVmVyIjoiNDIuOTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6Om1pbm9yIl19-->
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