service.config.nswag 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. {
  2. "runtime": "Default",
  3. "defaultVariables": null,
  4. "documentGenerator": {
  5. "fromDocument": {
  6. "url": "http://localhost:18531/swagger/EAP接口文档/swagger.json",
  7. "output": null
  8. }
  9. },
  10. "codeGenerators": {
  11. "openApiToTypeScriptClient": {
  12. "className": "{controller}ServiceProxy",
  13. "moduleName": "",
  14. "namespace": "",
  15. "typeScriptVersion": 2.0,
  16. "template": "Angular",
  17. "promiseType": "Promise",
  18. "httpClass": "HttpClient",
  19. "withCredentials": false,
  20. "useSingletonProvider": false,
  21. "injectionTokenType": "InjectionToken",
  22. "rxJsVersion": 6.0,
  23. "dateTimeType": "MomentJS",
  24. "nullValue": "Undefined",
  25. "generateClientClasses": true,
  26. "generateClientInterfaces": false,
  27. "generateOptionalParameters": false,
  28. "exportTypes": true,
  29. "wrapDtoExceptions": false,
  30. "exceptionClass": "ApiException",
  31. "clientBaseClass": null,
  32. "wrapResponses": false,
  33. "wrapResponseMethods": [],
  34. "generateResponseClasses": true,
  35. "responseClass": "SwaggerResponse",
  36. "protectedMethods": [],
  37. "configurationClass": null,
  38. "useTransformOptionsMethod": false,
  39. "useTransformResultMethod": false,
  40. "generateDtoTypes": true,
  41. "operationGenerationMode": "MultipleClientsFromOperationId",
  42. "markOptionalProperties": false,
  43. "generateCloneMethod": true,
  44. "typeStyle": "Class",
  45. "classTypes": [],
  46. "extendedClasses": [],
  47. "extensionCode": null,
  48. "generateDefaultValues": true,
  49. "excludedTypeNames": [],
  50. "excludedParameterNames": [],
  51. "handleReferences": false,
  52. "generateConstructorInterface": true,
  53. "convertConstructorInterfaceData": false,
  54. "importRequiredTypes": true,
  55. "useGetBaseUrlMethod": false,
  56. "baseUrlTokenName": "API_BASE_URL",
  57. "queryNullValue": "",
  58. "inlineNamedDictionaries": false,
  59. "inlineNamedAny": false,
  60. "templateDirectory": null,
  61. "typeNameGeneratorType": null,
  62. "propertyNameGeneratorType": null,
  63. "enumNameGeneratorType": null,
  64. "serviceHost": null,
  65. "serviceSchemes": null,
  66. "output": "../src/app/shared/http/eap-service-proxies.ts"
  67. },
  68. "openApiToCSharpClient": {
  69. "clientBaseClass": null,
  70. "configurationClass": null,
  71. "generateClientClasses": true,
  72. "generateClientInterfaces": false,
  73. "injectHttpClient": false,
  74. "disposeHttpClient": true,
  75. "protectedMethods": [],
  76. "generateExceptionClasses": true,
  77. "exceptionClass": "SwaggerException",
  78. "wrapDtoExceptions": true,
  79. "useHttpClientCreationMethod": false,
  80. "httpClientType": "System.Net.Http.HttpClient",
  81. "useHttpRequestMessageCreationMethod": false,
  82. "useBaseUrl": true,
  83. "generateBaseUrlProperty": true,
  84. "generateSyncMethods": false,
  85. "exposeJsonSerializerSettings": false,
  86. "clientClassAccessModifier": "public",
  87. "typeAccessModifier": "public",
  88. "generateContractsOutput": false,
  89. "contractsNamespace": null,
  90. "contractsOutputFilePath": null,
  91. "parameterDateTimeFormat": "s",
  92. "parameterDateFormat": "yyyy-MM-dd",
  93. "generateUpdateJsonSerializerSettingsMethod": true,
  94. "serializeTypeInformation": false,
  95. "queryNullValue": "",
  96. "className": "{controller}Client",
  97. "operationGenerationMode": "MultipleClientsFromOperationId",
  98. "additionalNamespaceUsages": [],
  99. "additionalContractNamespaceUsages": [],
  100. "generateOptionalParameters": false,
  101. "generateJsonMethods": true,
  102. "enforceFlagEnums": false,
  103. "parameterArrayType": "System.Collections.Generic.IEnumerable",
  104. "parameterDictionaryType": "System.Collections.Generic.IDictionary",
  105. "responseArrayType": "System.Collections.ObjectModel.ObservableCollection",
  106. "responseDictionaryType": "System.Collections.Generic.Dictionary",
  107. "wrapResponses": false,
  108. "wrapResponseMethods": [],
  109. "generateResponseClasses": true,
  110. "responseClass": "SwaggerResponse",
  111. "namespace": "MyNamespace",
  112. "requiredPropertiesMustBeDefined": true,
  113. "dateType": "System.DateTime",
  114. "jsonConverters": null,
  115. "anyType": "object",
  116. "dateTimeType": "System.DateTime",
  117. "timeType": "System.TimeSpan",
  118. "timeSpanType": "System.TimeSpan",
  119. "arrayType": "System.Collections.ObjectModel.ObservableCollection",
  120. "arrayInstanceType": "System.Collections.ObjectModel.Collection",
  121. "dictionaryType": "System.Collections.Generic.Dictionary",
  122. "dictionaryInstanceType": "System.Collections.Generic.Dictionary",
  123. "arrayBaseType": "System.Collections.ObjectModel.ObservableCollection",
  124. "dictionaryBaseType": "System.Collections.Generic.Dictionary",
  125. "classStyle": "Inpc",
  126. "generateDefaultValues": true,
  127. "generateDataAnnotations": true,
  128. "excludedTypeNames": [],
  129. "excludedParameterNames": [],
  130. "handleReferences": false,
  131. "generateImmutableArrayProperties": false,
  132. "generateImmutableDictionaryProperties": false,
  133. "jsonSerializerSettingsTransformationMethod": null,
  134. "inlineNamedArrays": false,
  135. "inlineNamedDictionaries": false,
  136. "inlineNamedTuples": true,
  137. "inlineNamedAny": false,
  138. "generateDtoTypes": true,
  139. "generateOptionalPropertiesAsNullable": false,
  140. "templateDirectory": null,
  141. "typeNameGeneratorType": null,
  142. "propertyNameGeneratorType": null,
  143. "enumNameGeneratorType": null,
  144. "serviceHost": null,
  145. "serviceSchemes": null,
  146. "output": null
  147. },
  148. "openApiToCSharpController": {
  149. "controllerBaseClass": null,
  150. "controllerStyle": "Partial",
  151. "controllerTarget": "AspNet",
  152. "useCancellationToken": false,
  153. "useActionResultType": false,
  154. "generateModelValidationAttributes": false,
  155. "routeNamingStrategy": "None",
  156. "basePath": null,
  157. "className": "{controller}",
  158. "operationGenerationMode": "MultipleClientsFromOperationId",
  159. "additionalNamespaceUsages": [
  160. "System.Web.Http"
  161. ],
  162. "additionalContractNamespaceUsages": [],
  163. "generateOptionalParameters": false,
  164. "generateJsonMethods": true,
  165. "enforceFlagEnums": false,
  166. "parameterArrayType": "System.Collections.Generic.IEnumerable",
  167. "parameterDictionaryType": "System.Collections.Generic.IDictionary",
  168. "responseArrayType": "System.Collections.ObjectModel.ObservableCollection",
  169. "responseDictionaryType": "System.Collections.Generic.Dictionary",
  170. "wrapResponses": false,
  171. "wrapResponseMethods": [],
  172. "generateResponseClasses": true,
  173. "responseClass": "SwaggerResponse",
  174. "namespace": "MyNamespace",
  175. "requiredPropertiesMustBeDefined": true,
  176. "dateType": "System.DateTime",
  177. "jsonConverters": null,
  178. "anyType": "object",
  179. "dateTimeType": "System.DateTime",
  180. "timeType": "System.TimeSpan",
  181. "timeSpanType": "System.TimeSpan",
  182. "arrayType": "System.Collections.Generic.IEnumerable",
  183. "arrayInstanceType": "System.Collections.ObjectModel.Collection",
  184. "dictionaryType": "System.Collections.Generic.Dictionary",
  185. "dictionaryInstanceType": "System.Collections.Generic.Dictionary",
  186. "arrayBaseType": "System.Collections.ObjectModel.ObservableCollection",
  187. "dictionaryBaseType": "System.Collections.Generic.Dictionary",
  188. "classStyle": "Inpc",
  189. "generateDefaultValues": true,
  190. "generateDataAnnotations": true,
  191. "excludedTypeNames": [],
  192. "excludedParameterNames": [],
  193. "handleReferences": false,
  194. "generateImmutableArrayProperties": false,
  195. "generateImmutableDictionaryProperties": false,
  196. "jsonSerializerSettingsTransformationMethod": null,
  197. "inlineNamedArrays": false,
  198. "inlineNamedDictionaries": false,
  199. "inlineNamedTuples": true,
  200. "inlineNamedAny": false,
  201. "generateDtoTypes": true,
  202. "generateOptionalPropertiesAsNullable": false,
  203. "templateDirectory": null,
  204. "typeNameGeneratorType": null,
  205. "propertyNameGeneratorType": null,
  206. "enumNameGeneratorType": null,
  207. "serviceHost": null,
  208. "serviceSchemes": null,
  209. "output": null
  210. }
  211. }
  212. }