Skip to content

Commit df7ee7b

Browse files
marblom007meshery-ci
authored andcommitted
Generate build artifacts from schemas
Signed-off-by: meshery <ci@meshery.io>
1 parent 41266da commit df7ee7b

File tree

15 files changed

+323
-283
lines changed

15 files changed

+323
-283
lines changed

models/v1beta1/environment/environment.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/generated/v1beta1/component/Component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export interface components {
140140
*/
141141
id: string;
142142
/**
143-
* @description Specifies the version of the schema used for the definition.
143+
* @description Specifies the version of the schema to which the environment conforms.
144144
* @default environments.meshery.io/v1beta1
145145
* @example [
146146
* "v1",
@@ -151,7 +151,7 @@ export interface components {
151151
* "capability.meshery.io/v1alpha1"
152152
* ]
153153
*/
154-
schemaVersion?: string;
154+
schemaVersion: string;
155155
/** @description Environment name */
156156
name: string;
157157
/** @description Environment description */

typescript/generated/v1beta1/component/ComponentSchema.ts

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ const ComponentSchema = {
411411
"type": "object",
412412
"required": [
413413
"id",
414+
"schemaVersion",
414415
"name",
415416
"description",
416417
"organization_id"
@@ -432,11 +433,12 @@ const ComponentSchema = {
432433
}
433434
},
434435
"schemaVersion": {
435-
"description": "Specifies the version of the schema used for the definition.",
436+
"description": "Specifies the version of the schema to which the environment conforms.",
436437
"x-order": 2,
437438
"x-oapi-codegen-extra-tags": {
438-
"db": "schema_version",
439-
"yaml": "schemaVersion"
439+
"yaml": "schemaVersion",
440+
"db": "-",
441+
"gorm": "-"
440442
},
441443
"default": "environments.meshery.io/v1beta1",
442444
"type": "string",
@@ -457,7 +459,7 @@ const ComponentSchema = {
457459
"db": "name",
458460
"yaml": "name"
459461
},
460-
"x-order": 2,
462+
"x-order": 3,
461463
"type": "string",
462464
"description": "Environment name"
463465
},
@@ -466,7 +468,7 @@ const ComponentSchema = {
466468
"db": "description",
467469
"yaml": "description"
468470
},
469-
"x-order": 3,
471+
"x-order": 4,
470472
"type": "string",
471473
"description": "Environment description"
472474
},
@@ -476,7 +478,7 @@ const ComponentSchema = {
476478
"db": "organization_id",
477479
"yaml": "organization_id"
478480
},
479-
"x-order": 4,
481+
"x-order": 5,
480482
"description": "Environment organization ID",
481483
"type": "string",
482484
"format": "uuid",
@@ -490,7 +492,7 @@ const ComponentSchema = {
490492
"db": "owner",
491493
"yaml": "owner"
492494
},
493-
"x-order": 5,
495+
"x-order": 6,
494496
"description": "Environment owner",
495497
"type": "string",
496498
"format": "uuid",
@@ -504,7 +506,7 @@ const ComponentSchema = {
504506
"db": "created_at",
505507
"yaml": "created_at"
506508
},
507-
"x-order": 6,
509+
"x-order": 7,
508510
"type": "string",
509511
"format": "date-time",
510512
"x-go-type-skip-optional-pointer": true
@@ -514,7 +516,7 @@ const ComponentSchema = {
514516
"db": "metadata",
515517
"yaml": "metadata"
516518
},
517-
"x-order": 7,
519+
"x-order": 8,
518520
"x-go-type": "core.Map",
519521
"x-go-type-skip-optional-pointer": true,
520522
"type": "object"
@@ -524,7 +526,7 @@ const ComponentSchema = {
524526
"db": "updated_at",
525527
"yaml": "updated_at"
526528
},
527-
"x-order": 8,
529+
"x-order": 9,
528530
"type": "string",
529531
"format": "date-time",
530532
"x-go-type-skip-optional-pointer": true
@@ -536,7 +538,7 @@ const ComponentSchema = {
536538
},
537539
"x-go-type": "core.NullTime",
538540
"x-go-import": "database/sql",
539-
"x-order": 9,
541+
"x-order": 10,
540542
"type": "string",
541543
"format": "date-time",
542544
"x-go-type-skip-optional-pointer": true

typescript/generated/v1beta1/connection/Connection.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export interface components {
9090
*/
9191
id: string;
9292
/**
93-
* @description Specifies the version of the schema used for the definition.
93+
* @description Specifies the version of the schema to which the environment conforms.
9494
* @default environments.meshery.io/v1beta1
9595
* @example [
9696
* "v1",
@@ -101,7 +101,7 @@ export interface components {
101101
* "capability.meshery.io/v1alpha1"
102102
* ]
103103
*/
104-
schemaVersion?: string;
104+
schemaVersion: string;
105105
/** @description Environment name */
106106
name: string;
107107
/** @description Environment description */
@@ -194,7 +194,7 @@ export interface components {
194194
*/
195195
id: string;
196196
/**
197-
* @description Specifies the version of the schema used for the definition.
197+
* @description Specifies the version of the schema to which the environment conforms.
198198
* @default environments.meshery.io/v1beta1
199199
* @example [
200200
* "v1",
@@ -205,7 +205,7 @@ export interface components {
205205
* "capability.meshery.io/v1alpha1"
206206
* ]
207207
*/
208-
schemaVersion?: string;
208+
schemaVersion: string;
209209
/** @description Environment name */
210210
name: string;
211211
/** @description Environment description */
@@ -484,7 +484,7 @@ export interface operations {
484484
*/
485485
id: string;
486486
/**
487-
* @description Specifies the version of the schema used for the definition.
487+
* @description Specifies the version of the schema to which the environment conforms.
488488
* @default environments.meshery.io/v1beta1
489489
* @example [
490490
* "v1",
@@ -495,7 +495,7 @@ export interface operations {
495495
* "capability.meshery.io/v1alpha1"
496496
* ]
497497
*/
498-
schemaVersion?: string;
498+
schemaVersion: string;
499499
/** @description Environment name */
500500
name: string;
501501
/** @description Environment description */
@@ -606,7 +606,7 @@ export interface operations {
606606
*/
607607
id: string;
608608
/**
609-
* @description Specifies the version of the schema used for the definition.
609+
* @description Specifies the version of the schema to which the environment conforms.
610610
* @default environments.meshery.io/v1beta1
611611
* @example [
612612
* "v1",
@@ -617,7 +617,7 @@ export interface operations {
617617
* "capability.meshery.io/v1alpha1"
618618
* ]
619619
*/
620-
schemaVersion?: string;
620+
schemaVersion: string;
621621
/** @description Environment name */
622622
name: string;
623623
/** @description Environment description */
@@ -757,7 +757,7 @@ export interface operations {
757757
*/
758758
id: string;
759759
/**
760-
* @description Specifies the version of the schema used for the definition.
760+
* @description Specifies the version of the schema to which the environment conforms.
761761
* @default environments.meshery.io/v1beta1
762762
* @example [
763763
* "v1",
@@ -768,7 +768,7 @@ export interface operations {
768768
* "capability.meshery.io/v1alpha1"
769769
* ]
770770
*/
771-
schemaVersion?: string;
771+
schemaVersion: string;
772772
/** @description Environment name */
773773
name: string;
774774
/** @description Environment description */
@@ -878,7 +878,7 @@ export interface operations {
878878
*/
879879
id: string;
880880
/**
881-
* @description Specifies the version of the schema used for the definition.
881+
* @description Specifies the version of the schema to which the environment conforms.
882882
* @default environments.meshery.io/v1beta1
883883
* @example [
884884
* "v1",
@@ -889,7 +889,7 @@ export interface operations {
889889
* "capability.meshery.io/v1alpha1"
890890
* ]
891891
*/
892-
schemaVersion?: string;
892+
schemaVersion: string;
893893
/** @description Environment name */
894894
name: string;
895895
/** @description Environment description */

0 commit comments

Comments
 (0)