Skip to content
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

web-manifest: describe enum values for orientation #4281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ewen-lbh
Copy link

@ewen-lbh ewen-lbh commented Dec 13, 2024

This adds enum descriptions (with the officially accepted "hack" of turning enum into a oneOf of const subschemas, see json-schema-org/json-schema-spec#57) to the orientation field for PWA manifest files. Might do more enums.

Main motivation is to show descriptions on auto-complete in IDEs (vscode unfortunately does not show them nicely, i've opened a separate issue microsoft/vscode#236074)

The descriptions are sourced from https://developer.mozilla.org/en-US/docs/Web/Manifest/orientation

Copy link
Contributor

Thanks for the PR!

This section of the codebase is owned by @madskristensen and @hyperupcall - if they write a comment saying "LGTM" then it will be merged.

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