Skip to content

Commit 74db55f

Browse files
committed
refactor(asyncapi): add default value for streetlightId parameter in snapshots
1 parent 530f516 commit 74db55f

5 files changed

Lines changed: 10 additions & 0 deletions

File tree

packages/asyncapi-typescript-plugin/src/__snapshots__/no-extra-options.ts.snapshot.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,12 @@ export interface components {
403403
parameters: {
404404
/**
405405
* @description The ID of the streetlight.
406+
* @default streetlight-1
406407
* @enum {unknown}
407408
*/
408409
streetlightId: {
409410
location: "$message.payload#/item/id";
411+
default: "streetlight-1";
410412
enum: [
411413
"streetlight-1",
412414
"streetlight-2"

packages/asyncapi-typescript-plugin/src/__snapshots__/with-asyncapi-types-file-name.ts.snapshot.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,12 @@ export interface components {
403403
parameters: {
404404
/**
405405
* @description The ID of the streetlight.
406+
* @default streetlight-1
406407
* @enum {unknown}
407408
*/
408409
streetlightId: {
409410
location: "$message.payload#/item/id";
411+
default: "streetlight-1";
410412
enum: [
411413
"streetlight-1",
412414
"streetlight-2"

packages/asyncapi-typescript-plugin/src/__snapshots__/with-enum-values.ts.snapshot.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,12 @@ export interface components {
403403
parameters: {
404404
/**
405405
* @description The ID of the streetlight.
406+
* @default streetlight-1
406407
* @enum {unknown}
407408
*/
408409
streetlightId: {
409410
location: "$message.payload#/item/id";
411+
default: "streetlight-1";
410412
enum: [
411413
"streetlight-1",
412414
"streetlight-2"

packages/asyncapi-typescript-plugin/src/__snapshots__/with-enum.ts.snapshot.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,12 @@ export interface components {
403403
parameters: {
404404
/**
405405
* @description The ID of the streetlight.
406+
* @default streetlight-1
406407
* @enum {unknown}
407408
*/
408409
streetlightId: {
409410
location: "$message.payload#/item/id";
411+
default: "streetlight-1";
410412
enum: [
411413
"streetlight-1",
412414
"streetlight-2"

packages/asyncapi-typescript-plugin/src/__snapshots__/with-immutable.ts.snapshot.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,12 @@ export interface components {
403403
parameters: {
404404
/**
405405
* @description The ID of the streetlight.
406+
* @default streetlight-1
406407
* @enum {unknown}
407408
*/
408409
readonly streetlightId: {
409410
readonly location: "$message.payload#/item/id";
411+
readonly default: "streetlight-1";
410412
readonly enum: [
411413
"streetlight-1",
412414
"streetlight-2"

0 commit comments

Comments
 (0)