Skip to content

Commit 8c5d03b

Browse files
Add so password fields have the password OpenApi format
1 parent 0869cad commit 8c5d03b

55 files changed

Lines changed: 119 additions & 62 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

modules/openapi-generator/src/test/resources/1_2/petstore-1.2/user

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@
244244
"description": "The password for login in clear text",
245245
"required": true,
246246
"type": "string",
247-
"paramType": "query"
247+
"paramType": "query",
248+
"format": "password"
248249
}
249250
],
250251
"responseMessages": [
@@ -278,7 +279,8 @@
278279
"type": "string"
279280
},
280281
"password": {
281-
"type": "string"
282+
"type": "string",
283+
"format": "password"
282284
},
283285
"phone": {
284286
"type": "string"

modules/openapi-generator/src/test/resources/2_0/c/petstore.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ paths:
632632
description: The password for login in clear text
633633
required: true
634634
type: string
635+
format: password
635636
responses:
636637
'200':
637638
description: successful operation
@@ -872,6 +873,7 @@ definitions:
872873
type: string
873874
password:
874875
type: string
876+
format: password
875877
phone:
876878
type: string
877879
userStatus:

modules/openapi-generator/src/test/resources/2_0/globalSecurity.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,8 @@
652652
"in": "query",
653653
"description": "The password for login in clear text",
654654
"required": false,
655-
"type": "string"
655+
"type": "string",
656+
"format": "password"
656657
}
657658
],
658659
"responses": {
@@ -861,7 +862,8 @@
861862
"type": "string"
862863
},
863864
"password": {
864-
"type": "string"
865+
"type": "string",
866+
"format": "password"
865867
},
866868
"phone": {
867869
"type": "string"

modules/openapi-generator/src/test/resources/2_0/long_description_issue_7839.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@
503503
"in" : "query",
504504
"description" : "The password for login in clear text",
505505
"required" : true,
506-
"type" : "string"
506+
"type" : "string",
507+
"format": "password"
507508
} ],
508509
"responses" : {
509510
"200" : {
@@ -711,7 +712,8 @@
711712
"type" : "string"
712713
},
713714
"password" : {
714-
"type" : "string"
715+
"type" : "string",
716+
"format" : "password"
715717
},
716718
"phone" : {
717719
"type" : "string"

modules/openapi-generator/src/test/resources/2_0/petstore-bash.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,8 @@
698698
"in":"query",
699699
"description":"The password for login in clear text",
700700
"required":true,
701-
"type":"string"
701+
"type":"string",
702+
"format":"password"
702703
}
703704
],
704705
"responses":{
@@ -942,7 +943,8 @@
942943
"type":"string"
943944
},
944945
"password":{
945-
"type":"string"
946+
"type":"string",
947+
"format": "password"
946948
},
947949
"phone":{
948950
"type":"string"

modules/openapi-generator/src/test/resources/2_0/petstore-nullable.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,7 @@ paths:
452452
description: The password for login in clear text
453453
required: true
454454
type: string
455+
format: password
455456
responses:
456457
'200':
457458
description: successful operation
@@ -625,6 +626,7 @@ definitions:
625626
type: string
626627
password:
627628
type: string
629+
format: password
628630
phone:
629631
type: string
630632
userStatus:

modules/openapi-generator/src/test/resources/2_0/petstore-orig.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,8 @@
652652
"in": "query",
653653
"description": "The password for login in clear text",
654654
"required": false,
655-
"type": "string"
655+
"type": "string",
656+
"format": "password"
656657
}
657658
],
658659
"responses": {
@@ -828,7 +829,8 @@
828829
"type": "string"
829830
},
830831
"password": {
831-
"type": "string"
832+
"type": "string",
833+
"format": "password"
832834
},
833835
"phone": {
834836
"type": "string"

modules/openapi-generator/src/test/resources/2_0/petstore-proto.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ paths:
453453
description: The password for login in clear text
454454
required: true
455455
type: string
456+
format: password
456457
responses:
457458
'200':
458459
description: successful operation
@@ -626,6 +627,7 @@ definitions:
626627
type: string
627628
password:
628629
type: string
630+
format: password
629631
phone:
630632
type: string
631633
userStatus:

modules/openapi-generator/src/test/resources/2_0/petstore-vendor-mime.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ paths:
448448
description: The password for login in clear text
449449
required: true
450450
type: string
451+
format: password
451452
responses:
452453
'200':
453454
description: successful operation
@@ -839,6 +840,7 @@ definitions:
839840
type: string
840841
password:
841842
type: string
843+
format: password
842844
phone:
843845
type: string
844846
userStatus:

modules/openapi-generator/src/test/resources/2_0/petstore-with-date-field.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ paths:
442442
description: The password for login in clear text
443443
required: true
444444
type: string
445+
format: password
445446
responses:
446447
'200':
447448
description: successful operation
@@ -615,6 +616,7 @@ definitions:
615616
type: string
616617
password:
617618
type: string
619+
format: password
618620
phone:
619621
type: string
620622
userStatus:

0 commit comments

Comments
 (0)