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

Consider using web-types schema for component data #2090

Open
1 task done
rchl opened this issue Jul 31, 2020 · 2 comments
Open
1 task done

Consider using web-types schema for component data #2090

rchl opened this issue Jul 31, 2020 · 2 comments

Comments

@rchl
Copy link
Collaborator

rchl commented Jul 31, 2020

  • I have searched through existing issues

Feature Request

I don't know the framework support system well but it seems like it's necessary to specify tags and attributes separately (at least if one wants more detailed attributes description).

Vetur should maybe consider using the schema that webstorm uses (for example https://github.com/nuxt/nuxt.js/blob/0a4aacc946126b5b4c39cd2e546edcb9838053c7/packages/vue-app/web-types/web-types.json).

It has everything in the same file/object and there is no need to split anything.
Also, it uses an existing schema (http://json.schemastore.org/web-types) so developers can get their types validated when creating them.

@rchl
Copy link
Collaborator Author

rchl commented Jul 31, 2020

On a related note, not sure if it's the limitation of the schema or Vetur but even though Nuxt defines type for an attribute, it doesn't seem to have any effect in Vetur.

https://github.com/nuxt-community/nuxt-helper-json/blob/37c75c9c0bcf2c06a6fc41be5bd73bcbbf6b0d13/nuxt-attributes.json#L13

@yoyo930021
Copy link
Member

Follow vuejs/vue#7186

@rchl rchl changed the title Consider using webstorm schema for framework support Consider using web-types schema for component data Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants