From 2c347cfb7e05d0d1eb2ef698822da63324a97c93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20G=C3=B3mez?= Date: Mon, 16 Sep 2019 19:13:56 +0200 Subject: [PATCH] Update default file template --- .../AsyncApiProjectTemplateProvider.xtend | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/plugins/io.github.abelgomez.asyncapi.ui/src/io/github/abelgomez/asyncapi/ui/wizard/AsyncApiProjectTemplateProvider.xtend b/plugins/io.github.abelgomez.asyncapi.ui/src/io/github/abelgomez/asyncapi/ui/wizard/AsyncApiProjectTemplateProvider.xtend index b2f0a05..d7344b5 100644 --- a/plugins/io.github.abelgomez.asyncapi.ui/src/io/github/abelgomez/asyncapi/ui/wizard/AsyncApiProjectTemplateProvider.xtend +++ b/plugins/io.github.abelgomez.asyncapi.ui/src/io/github/abelgomez/asyncapi/ui/wizard/AsyncApiProjectTemplateProvider.xtend @@ -58,10 +58,27 @@ final class HelloWorldProject { builderIds += #[JavaCore.BUILDER_ID, XtextProjectHelper.BUILDER_ID] folders += "src" addFile('''src/«path»/Model.asyncapi''', ''' - /* - * This is an example model - */ - Hello «name»! + { + "asyncapi": "1.2.0", + "info": { + "title": "Sample AsyncAPI specification", + "version": "0.1.0" + }, + "servers": [ + { + "url": "broker.url:{port}", + "scheme": "mqtt" + } + ], + "topics": { + }, + "components": { + "schemas" : { + }, + "messages" : { + } + } + } ''') ]) }