-
Notifications
You must be signed in to change notification settings - Fork 40
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 Documentation support #128
Comments
Hi @Profpatsch ! Are you talking about editing YAML files? Where it shows "Validation schema for OpenAPI ..."? |
Yes! Exactly. I’d expect some documentation about the field at that point. |
These text in these hovers comes from OpenAPI JSON schema we use for validation. Unfortunately, the official schema does not come with the "description" fields for every property defined in schema. We'll look into adding descriptions to the schema, but it probably will take some time. |
I poked at this for a little while today, and encountered promising behavior.
diff --git a/schema/openapi-3.0-2019-04-02.json b/schema/openapi-3.0-2019-04-02.json
index a36d749..3eb3f61 100644
--- a/schema/openapi-3.0-2019-04-02.json
+++ b/schema/openapi-3.0-2019-04-02.json
@@ -66,6 +66,7 @@
},
"Info": {
"type": "object",
+ "title": "InfoObject\n\nThe object provides metadata about the API. The metadata MAY be used by the clients if needed, and MAY be presented in editing or documentation generation tools for convenience.",
"required": [
"title",
"version" ![]() 🥦 Generate
|
It would be cool if the mode could display documentation of the fields when hovering over keys, or looking at intellisense completions.
The text was updated successfully, but these errors were encountered: