Skip to content

chore(schema): Minor updates to schema.json [skip ci] - #8097

Merged
rfay merged 2 commits into
ddev:mainfrom
rfay:20260203_rfay_schema_json
Feb 4, 2026
Merged

rfay merged 2 commits into
ddev:mainfrom
rfay:20260203_rfay_schema_json

Conversation

@rfay

@rfay rfay commented Feb 3, 2026

Copy link
Copy Markdown
Member

The Issue

I was working with new ddev share and got worried about the schema

How This PR Solves The Issue

Minor improvement to both schema.json, suggesting examples.

@rfay
rfay requested a review from a team as a code owner February 3, 2026 18:40

@tyler36 tyler36 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.

Thank you.

@rfay
rfay requested a review from stasadev February 4, 2026 01:49

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Works in VS Code, doesn't work in JetBrains.

@stasadev
stasadev force-pushed the 20260203_rfay_schema_json branch from 3f800ef to bbedc23 Compare February 4, 2026 12:01

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me.

Comment thread pkg/ddevapp/schema.json
"description": "Composer version for the web container and the ddev composer command.",
"type": "string"
"type": "string",
"anyOf": [

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I like this approach, but doesn't this imply that 2.9.3 and other arbitrary values are not valid?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

When the value is composer_version.enum, any value that is not in the list has a red underscore, and with composer_version.anyOf it works as a suggestion.

I was thinking of updating it with specific versions, but it only adds to the burden, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's not possible to maintain specific versions, but they are valid. If composer_version.anyOf is a suggestion, then yay!

@rfay
rfay merged commit 9fd3f20 into ddev:main Feb 4, 2026
2 checks passed
@rfay
rfay deleted the 20260203_rfay_schema_json branch February 4, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants