Skip to content
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

feat: add flag for using generator v2 #1513

Merged
merged 10 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ lib
/test/commands/generate/models/
test/helpers
/test/fixtures/minimaltemplate
/test/fixtures/newtemplate
create-glee-app
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@
"no-use-before-define": "off",
"sonarjs/cognitive-complexity": "off"
}
},
{
"files": ["src/core/base.ts"],
"rules": {
"@typescript-eslint/ban-ts-comment": "off"
}
}
]
}
3 changes: 3 additions & 0 deletions check/asyncapi.md
Souvikns marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This is a markdown file for my application.
App name is: **Streetlights API V2**
Version running on mode
54 changes: 54 additions & 0 deletions check/asyncapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
asyncapi: "2.1.0"
info:
title: Streetlights API V2
version: "1.0.0"
description: |
The Smartylighting Streetlights API allows you
to remotely manage the city lights.
license:
name: Apache 2.0
url: "https://www.apache.org/licenses/LICENSE-2.0"
servers:
mosquitto:
url: http://test.mosquitto.org
protocol: http
channels:
user/signedup:
subscribe:
message:
$ref: "#/components/messages/UserSignedUp"
light/measured:
publish:
summary: Inform about environmental lighting conditions for a particular streetlight.
operationId: onLightMeasured
message:
name: LightMeasured
payload:
type: object
properties:
id:
type: integer
minimum: 1
description: Id of the streetlight.
lumens:
type: integer
minimum: 0
description: Light intensity measured in lumens.
sentAt:
type: string
format: date-time
description: Date and time when the message was sent.

components:
messages:
UserSignedUp:
payload:
type: object
properties:
displayName:
type: string
description: Name of the user
email:
type: string
format: email
description: Email of the user
Loading
Loading