Skip to content

fix(schema): add missing settings type#6070

Merged
jdx merged 1 commit intojdx:mainfrom
br3ndonland:fix-schema-settings-type
Aug 19, 2025
Merged

fix(schema): add missing settings type#6070
jdx merged 1 commit intojdx:mainfrom
br3ndonland:fix-schema-settings-type

Conversation

@br3ndonland
Copy link
Copy Markdown
Contributor

Description

The JSON schema is missing a type for the settings key.

"settings": {

To reproduce this, create a mise.toml with a [settings] key and lint the file using the JSON schema.

printf '[settings]\n' >mise.toml
uvx --from "tombi>=0.5,<0.6" tombi lint --no-cache mise.toml
Error: invalid json pointer: #/$defs/settings,
schema_uri: https://mise.jdx.dev/schema/mise.json

Changes

This PR will add "type": "object" to the settings key in the JSON schema.

Related

The JSON schema is missing a type for the `settings` key.

To reproduce this, create a `mise.toml` with a `[settings]` key and lint
the file using the JSON schema.

```sh
printf '[settings]\n' >mise.toml
uvx --from "tombi>=0.5,<0.6" tombi lint --no-cache mise.toml
```

```log
Error: invalid json pointer: #/$defs/settings,
schema_uri: https://mise.jdx.dev/schema/mise.json
```

This commit will add `"type": "object"` to the `settings` key in the
JSON schema.

Signed-off-by: Brendon Smith <bws@bws.bio>
Copilot AI review requested due to automatic review settings August 19, 2025 00:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a missing type declaration in the JSON schema for the settings key. The schema was missing the "type": "object" property, which caused validation errors when linting TOML files containing a [settings] section.

  • Adds missing "type": "object" declaration to the settings schema definition

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@jdx jdx enabled auto-merge (squash) August 19, 2025 01:02
@jdx jdx merged commit fa40838 into jdx:main Aug 19, 2025
17 of 18 checks passed
jdx pushed a commit that referenced this pull request Aug 20, 2025
### 🚀 Features

- **(http)** auto-clean OS/arch suffixes from binary names by
[@jdx](https://github.com/jdx) in
[#6077](#6077)
- **(install)** add --dry-run flag to show what would be installed by
[@jdx](https://github.com/jdx) in
[#6078](#6078)

### 🐛 Bug Fixes

- **(python)** patching sysconfig data fails for RC versions by
[@roele](https://github.com/roele) in
[#6069](#6069)
- **(schema)** add missing `settings` type by
[@br3ndonland](https://github.com/br3ndonland) in
[#6070](#6070)

### Chore

- add liblzma-dev for e2e tests to avoid python-build warning by
[@jdx](https://github.com/jdx) in
[#6066](#6066)
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.

3 participants