Skip to content

Commit

Permalink
change format
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSaini101 committed Jul 4, 2024
1 parent b46cdec commit 139e914
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
33 changes: 33 additions & 0 deletions assets/create-template/templates/default/asyncapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
asyncapi: 2.6.0

info:
title: Temperature Service
version: 1.0.0
description: This service is in charge of processing all the events related to temperature.

servers:
dev:
url: test.mosquitto.org
protocol: mqtt

channels:
temperature/changed:
description: Updates the bedroom temperature in the database when the temperatures drops or goes up.
publish:
operationId: temperatureChange
message:
description: Message that is being sent when the temperature in the bedroom changes.
payload:
type: object
additionalProperties: false
properties:
temperatureId:
type: string
components:
schemas:
temperatureId:
type: object
additionalProperties: false
properties:
temperatureId:
type: string
2 changes: 1 addition & 1 deletion src/commands/new/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default class template extends Command {
`Unable to create the project. Please check the following message for further info about the error:\n\n${err}`
);
}
this.specFile = await load(`${templateDirectory}/asyncapi.yml`);
this.specFile = await load(`${templateDirectory}/asyncapi.yaml`);
this.metricsMetadata.template = flags.template;
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/new/template.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const errorMessages = {
alreadyExists: (projectName: string) =>
'Unable to create the project',
};
describe('new glee', () => {
describe('new template', () => {
before(() => {
try {
testHelper.deleteDummyProjectDirectory();
Expand Down

0 comments on commit 139e914

Please sign in to comment.