-
Notifications
You must be signed in to change notification settings - Fork 144
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
Inline JSON schema reference in func.yaml #2724
Comments
@KapilSareen would you be interested in this? |
At least Intellij seems to be sensitive to such a comment, but no luck with vs code. |
Yes sure! |
Somewhere I seen that in VS Code this works: # yaml-language-server: $schema=https://raw.githubusercontent.com/knative/func/refs/heads/main/schema/func_yaml-schema.json But it does not seems to work for me. |
Hi @matejvasek, This works for me in VS Code: # yaml-language-server: $schema=https://raw.githubusercontent.com/knative/func/refs/heads/main/schema/func_yaml-schema.json I recommend checking if you have the YAML Language Support extension installed in your VS code: Let me know if this resolves the issue for you. I'll open a PR shortly after. |
Yes it works with the plugin. Weird I would expect such a thing works out of the box. |
Maybe both will be needed:
|
It would be nice to include
# $schema: https://raw.githubusercontent.com/knative/func/refs/heads/main/schema/func_yaml-schema.json
at the beginning of the
func.yaml
so smart editor/IDE can help you.Just instead
main
it should refer to the tag version offunc
that create/updated thefunc.yaml
.The text was updated successfully, but these errors were encountered: