You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'The version string signifies the version of the AsyncAPI Specification that the document complies to. The format for this string _must_ be `major`.`minor`.`patch`. The `patch` _may_ be suffixed by a hyphen and extra alphanumeric characters.\n\n ---- \n\nA `major`.`minor` shall be used to designate the AsyncAPI Specification version, and will be considered compatible with the AsyncAPI Specification specified by that `major`.`minor` version. The patch version will not be considered by tooling, making no distinction between `1.0.0` and `1.0.1`.\n\n ---- \n\nIn subsequent versions of the AsyncAPI Specification, care will be given such that increments of the `minor` version should not interfere with operations of tooling developed to a lower minor version. Thus a hypothetical `1.1.0` specification should be usable with tooling designed for `1.0.0`.',
'**REQUIRED**. This string MUST be the [version number](#versions) of the OpenAPI Specification that the OpenAPI document uses. The `openapi` field SHOULD be used by tooling to interpret the OpenAPI document. This is *not* related to the API [`info.version`](#infoVersion) string.',
291
+
};
292
+
oasItem.kind=CompletionItemKind.Keyword;
293
+
oasItem.insertTextFormat=2;
294
+
oasItem.insertTextMode=2;
295
+
completionList.items.push(oasItem);
296
+
trace('doCompletion - no version',`completionList: ${JSON.stringify(completionList)}`);
297
+
}
298
+
257
299
/*
258
300
process errored YAML input badly handled by YAML parser (see https://github.com/swagger-api/apidom/issues/194)
259
301
similarly to what done in swagger-editor: check if we are in a partial "prefix" scenario, in this case add a `:`
@@ -270,6 +312,7 @@ export class DefaultCompletionService implements CompletionService {
0 commit comments