Skip to content

Commit e36563e

Browse files
committed
refactor: Improve auto-generated schema consistency
- Remove unnecessary minLength constraint from username fields - Standardize token descriptions across schema files - Generated by schema build process after rebase integration
1 parent 7f90710 commit e36563e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/schemas/src/v3/connection.schema.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,6 @@ const schema = {
613613
"properties": {
614614
"username": {
615615
"type": "string",
616-
"minLength": 1,
617616
"description": "Gerrit username for authentication",
618617
"examples": [
619618
"john.doe"
@@ -636,7 +635,7 @@ const schema = {
636635
"secret": {
637636
"type": "string",
638637
"minLength": 1,
639-
"description": "The name of the secret that contains the HTTP password."
638+
"description": "The name of the secret that contains the token."
640639
}
641640
},
642641
"required": [
@@ -650,7 +649,7 @@ const schema = {
650649
"env": {
651650
"type": "string",
652651
"minLength": 1,
653-
"description": "The name of the environment variable that contains the HTTP password. Only supported in declarative connection configs."
652+
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
654653
}
655654
},
656655
"required": [

packages/schemas/src/v3/gerrit.schema.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const schema = {
2323
"properties": {
2424
"username": {
2525
"type": "string",
26-
"minLength": 1,
2726
"description": "Gerrit username for authentication",
2827
"examples": [
2928
"john.doe"
@@ -46,7 +45,7 @@ const schema = {
4645
"secret": {
4746
"type": "string",
4847
"minLength": 1,
49-
"description": "The name of the secret that contains the HTTP password."
48+
"description": "The name of the secret that contains the token."
5049
}
5150
},
5251
"required": [
@@ -60,7 +59,7 @@ const schema = {
6059
"env": {
6160
"type": "string",
6261
"minLength": 1,
63-
"description": "The name of the environment variable that contains the HTTP password. Only supported in declarative connection configs."
62+
"description": "The name of the environment variable that contains the token. Only supported in declarative connection configs."
6463
}
6564
},
6665
"required": [

0 commit comments

Comments
 (0)