File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages
samples/server/petstore/flaskConnexion/swagger Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -145,10 +145,6 @@ public void processOpts() {
145
145
}
146
146
147
147
if (!new java .io .File (controllerPackage + File .separator + defaultController + ".py" ).exists ()) {
148
- //supportingFiles.add(new SupportingFile("controller.mustache",
149
- // controllerPackage,
150
- // defaultController + ".py")
151
- //);
152
148
supportingFiles .add (new SupportingFile ("__init__.mustache" ,
153
149
controllerPackage ,
154
150
"__init__.py" )
@@ -269,7 +265,7 @@ public void preprocessSwagger(Swagger swagger) {
269
265
}
270
266
else {
271
267
// no tag found, use "default_controller" as the default
272
- String tag = "default_controller " ;
268
+ String tag = "default " ;
273
269
operation .setTags (Arrays .asList (tag ));
274
270
controllerName = tag + "_controller" ;
275
271
}
Original file line number Diff line number Diff line change @@ -644,6 +644,8 @@ definitions:
644
644
complete :
645
645
type : " boolean"
646
646
default : false
647
+ title : " Pet Order"
648
+ description : " An order for a pets from the pet store"
647
649
xml :
648
650
name : " Order"
649
651
Category :
@@ -654,6 +656,8 @@ definitions:
654
656
format : " int64"
655
657
name :
656
658
type : " string"
659
+ title : " Pet catehgry"
660
+ description : " A category for a pet"
657
661
xml :
658
662
name : " Category"
659
663
User :
@@ -678,6 +682,8 @@ definitions:
678
682
type : " integer"
679
683
format : " int32"
680
684
description : " User Status"
685
+ title : " a User"
686
+ description : " A User who is purchasing from the pet store"
681
687
xml :
682
688
name : " User"
683
689
Tag :
@@ -688,6 +694,8 @@ definitions:
688
694
format : " int64"
689
695
name :
690
696
type : " string"
697
+ title : " Pet Tag"
698
+ description : " A tag for a pet"
691
699
xml :
692
700
name : " Tag"
693
701
Pet :
@@ -725,6 +733,8 @@ definitions:
725
733
- " available"
726
734
- " pending"
727
735
- " sold"
736
+ title : " a Pet"
737
+ description : " A pet for sale in the pet store"
728
738
xml :
729
739
name : " Pet"
730
740
ApiResponse :
@@ -737,6 +747,8 @@ definitions:
737
747
type : " string"
738
748
message :
739
749
type : " string"
750
+ title : " An uploaded response"
751
+ description : " Describes the result of uploading an image resource"
740
752
externalDocs :
741
753
description : " Find out more about Swagger"
742
754
url : " http://swagger.io"
You can’t perform that action at this time.
0 commit comments