Skip to content

Commit 6d2dd03

Browse files
committed
upd product details
1 parent 647d65f commit 6d2dd03

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

src/controllers/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,11 @@ components:
648648
type: string
649649
name:
650650
type: string
651+
type:
652+
type: string
653+
enum:
654+
- app
655+
- service
651656
description:
652657
type: string
653658
namespace:
@@ -671,6 +676,7 @@ components:
671676
example:
672677
name: my-new-product
673678
appId: '000000000000'
679+
type: service
674680
environments:
675681
-
676682
name: dev

src/controllers/v2/routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ const models: TsoaRoute.Models = {
415415
"properties": {
416416
"appId": {"dataType":"string"},
417417
"name": {"dataType":"string"},
418+
"type": {"dataType":"union","subSchemas":[{"dataType":"enum","enums":["app"]},{"dataType":"enum","enums":["service"]}]},
418419
"description": {"dataType":"string"},
419420
"namespace": {"dataType":"string"},
420421
"openapiSpecs": {"dataType":"array","array":{"dataType":"string"}},

src/controllers/v2/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ export interface Application {
275275
* @example {
276276
* "name": "my-new-product",
277277
* "appId": "000000000000",
278+
* "type": "service",
278279
* "environments": [
279280
* {
280281
* "name": "dev",
@@ -289,6 +290,7 @@ export interface Application {
289290
export interface Product {
290291
appId?: string; // Primary Key
291292
name?: string;
293+
type?: "app" | "service";
292294
description?: string;
293295
namespace?: string;
294296
openapiSpecs?: string[];

src/controllers/v3/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,11 @@ components:
590590
type: string
591591
name:
592592
type: string
593+
type:
594+
type: string
595+
enum:
596+
- app
597+
- service
593598
description:
594599
type: string
595600
gatewayId:
@@ -613,6 +618,7 @@ components:
613618
example:
614619
name: my-new-product
615620
appId: '000000000000'
621+
type: service
616622
environments:
617623
-
618624
name: dev

src/controllers/v3/routes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ const models: TsoaRoute.Models = {
397397
"properties": {
398398
"appId": {"dataType":"string"},
399399
"name": {"dataType":"string"},
400+
"type": {"dataType":"union","subSchemas":[{"dataType":"enum","enums":["app"]},{"dataType":"enum","enums":["service"]}]},
400401
"description": {"dataType":"string"},
401402
"gatewayId": {"dataType":"string"},
402403
"openapiSpecs": {"dataType":"array","array":{"dataType":"string"}},

src/controllers/v3/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ export interface Application {
275275
* @example {
276276
* "name": "my-new-product",
277277
* "appId": "000000000000",
278+
* "type": "service",
278279
* "environments": [
279280
* {
280281
* "name": "dev",
@@ -289,6 +290,7 @@ export interface Application {
289290
export interface Product {
290291
appId?: string; // Primary Key
291292
name?: string;
293+
type?: "app" | "service";
292294
description?: string;
293295
gatewayId?: string;
294296
openapiSpecs?: string[];

0 commit comments

Comments
 (0)