Skip to content

Add type to alternatives in JSONSchema #2697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jcscottiii
Copy link
Contributor

Currently, the alternatives field is described to be an array. But the
type of item is missing. This change adds the type as string for each alternative.

Currently, the alternatives field is described to be an array. But the
type of item is missing. This change adds the type as string for each alternative.
@ddbeck
Copy link
Collaborator

ddbeck commented Feb 25, 2025

Thanks for opening this, @jcscottiii. The JSON Schema is generated from Typescript types, so I'm not sure why this is missing already. I'll take a closer look at this soon.

@ddbeck
Copy link
Collaborator

ddbeck commented Feb 27, 2025

It turned out to be a knotty problem. I've filed #2722 to sort out our schema generation. In the mean time, I've pushed a change to the types to allow the tests to pass here.

This will get into the next release.

@ddbeck ddbeck merged commit 292e445 into web-platform-dx:main Feb 27, 2025
3 checks passed
@ddbeck ddbeck added schema Schema changes, proposals, and bugs package:web-features labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:web-features schema Schema changes, proposals, and bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants