@@ -2341,6 +2341,9 @@ protected function swagger($settings) {
23412341 if ($ k >0 ) echo ', ' ;
23422342 echo '" ' .$ field .'": { ' ;
23432343 echo '"type": "string" ' ;
2344+ if (isset ($ action ['fields ' ][$ field ]->type )) {
2345+ echo ',"x-dbtype": ' .json_encode ($ action ['fields ' ][$ field ]->type );
2346+ }
23442347 if (isset ($ action ['fields ' ][$ field ]->referenced )) {
23452348 echo ',"x-referenced": ' .json_encode ($ action ['fields ' ][$ field ]->referenced );
23462349 }
@@ -2371,6 +2374,9 @@ protected function swagger($settings) {
23712374 if ($ k >0 ) echo ', ' ;
23722375 echo '" ' .$ field .'": { ' ;
23732376 echo '"type": "string" ' ;
2377+ if (isset ($ action ['fields ' ][$ field ]->type )) {
2378+ echo ',"x-dbtype": ' .json_encode ($ action ['fields ' ][$ field ]->type );
2379+ }
23742380 if (isset ($ action ['fields ' ][$ field ]->referenced )) {
23752381 echo ',"x-referenced": ' .json_encode ($ action ['fields ' ][$ field ]->referenced );
23762382 }
@@ -2427,6 +2433,9 @@ protected function swagger($settings) {
24272433 if ($ k >0 ) echo ', ' ;
24282434 echo '" ' .$ field .'": { ' ;
24292435 echo '"type": "string" ' ;
2436+ if (isset ($ action ['fields ' ][$ field ]->type )) {
2437+ echo ',"x-dbtype": ' .json_encode ($ action ['fields ' ][$ field ]->type );
2438+ }
24302439 if (isset ($ action ['fields ' ][$ field ]->referenced )) {
24312440 echo ',"x-referenced": ' .json_encode ($ action ['fields ' ][$ field ]->referenced );
24322441 }
@@ -2454,6 +2463,9 @@ protected function swagger($settings) {
24542463 if ($ k >0 ) echo ', ' ;
24552464 echo '" ' .$ field .'": { ' ;
24562465 echo '"type": "string" ' ;
2466+ if (isset ($ action ['fields ' ][$ field ]->type )) {
2467+ echo ',"x-dbtype": ' .json_encode ($ action ['fields ' ][$ field ]->type );
2468+ }
24572469 if (isset ($ action ['fields ' ][$ field ]->referenced )) {
24582470 echo ',"x-referenced": ' .json_encode ($ action ['fields ' ][$ field ]->referenced );
24592471 }
0 commit comments