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

Add json schema mapping for shopware-cli configurations #199

Closed
Schrank opened this issue Jun 9, 2024 · 4 comments
Closed

Add json schema mapping for shopware-cli configurations #199

Schrank opened this issue Jun 9, 2024 · 4 comments

Comments

@Schrank
Copy link
Contributor

Schrank commented Jun 9, 2024

I just found a bug because I added the schema files to my phpstorm. It would be great if the module is shipping this functionality :-)

https://github.com/FriendsOfShopware/shopware-cli/blob/main/extension/shopware-extension-schema.json
https://github.com/FriendsOfShopware/shopware-cli/blob/main/shop/shopware-project-schema.json

@shyim
Copy link
Collaborator

shyim commented Jun 9, 2024

I don't get what you want 🙈 🤔

@Schrank
Copy link
Contributor Author

Schrank commented Jun 9, 2024

In the lower right corner one can choose a schema to validate the json file against:
image

Currently the two schemas from shopware-cli are not part of the list, therefore I added it. The problem is, this is a per-project setting and therefore it would be great to

  1. Add the two schema files to the schema database by phpstorm
  2. Automatically apply the correct schema to have auto-validation by phpstorm

@shyim
Copy link
Collaborator

shyim commented Jun 9, 2024

image

try this and then it should just work. These schema are registered in the schemastore project and therefore should automaticaly configure in every IDE

@Schrank
Copy link
Contributor Author

Schrank commented Jun 9, 2024

Ah, thanks!

@Schrank Schrank closed this as completed Jun 9, 2024
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

No branches or pull requests

2 participants