140 lines
5.4 KiB
Plaintext
140 lines
5.4 KiB
Plaintext
|
{
|
||
|
"runtime": "Default",
|
||
|
"swaggerGenerator": {
|
||
|
"fromSwagger": {
|
||
|
"url": "http://localhost:21021/swagger/v1/swagger.json",
|
||
|
"output": null
|
||
|
}
|
||
|
},
|
||
|
"codeGenerators": {
|
||
|
"swaggerToTypeScriptClient": {
|
||
|
"className": "{controller}ServiceProxy",
|
||
|
"moduleName": "",
|
||
|
"namespace": "",
|
||
|
"typeScriptVersion": 2.0,
|
||
|
"template": "Angular",
|
||
|
"promiseType": "Promise",
|
||
|
"httpClass": "HttpClient",
|
||
|
"useSingletonProvider": false,
|
||
|
"injectionTokenType": "InjectionToken",
|
||
|
"rxJsVersion": 6.0,
|
||
|
"dateTimeType": "MomentJS",
|
||
|
"nullValue": "Undefined",
|
||
|
"generateClientClasses": true,
|
||
|
"generateClientInterfaces": false,
|
||
|
"generateOptionalParameters": false,
|
||
|
"wrapDtoExceptions": false,
|
||
|
"wrapResponses": false,
|
||
|
"generateResponseClasses": true,
|
||
|
"responseClass": "SwaggerResponse",
|
||
|
"useTransformOptionsMethod": false,
|
||
|
"useTransformResultMethod": false,
|
||
|
"generateDtoTypes": true,
|
||
|
"operationGenerationMode": "MultipleClientsFromPathSegments",
|
||
|
"markOptionalProperties": false,
|
||
|
"generateCloneMethod": true,
|
||
|
"typeStyle": "Class",
|
||
|
"generateDefaultValues": true,
|
||
|
"excludedTypeNames": [],
|
||
|
"handleReferences": false,
|
||
|
"generateConstructorInterface": true,
|
||
|
"convertConstructorInterfaceData": false,
|
||
|
"importRequiredTypes": true,
|
||
|
"useGetBaseUrlMethod": false,
|
||
|
"baseUrlTokenName": "API_BASE_URL",
|
||
|
"queryNullValue": "",
|
||
|
"output": "../src/shared/service-proxies/service-proxies.ts"
|
||
|
},
|
||
|
"swaggerToCSharpClient": {
|
||
|
"generateClientClasses": true,
|
||
|
"generateClientInterfaces": false,
|
||
|
"generateDtoTypes": true,
|
||
|
"injectHttpClient": false,
|
||
|
"disposeHttpClient": true,
|
||
|
"generateExceptionClasses": true,
|
||
|
"exceptionClass": "SwaggerException",
|
||
|
"wrapDtoExceptions": true,
|
||
|
"useHttpClientCreationMethod": false,
|
||
|
"httpClientType": "System.Net.Http.HttpClient",
|
||
|
"useHttpRequestMessageCreationMethod": false,
|
||
|
"useBaseUrl": true,
|
||
|
"generateBaseUrlProperty": true,
|
||
|
"generateSyncMethods": false,
|
||
|
"exposeJsonSerializerSettings": false,
|
||
|
"clientClassAccessModifier": "public",
|
||
|
"typeAccessModifier": "public",
|
||
|
"generateContractsOutput": false,
|
||
|
"parameterDateTimeFormat": "s",
|
||
|
"generateUpdateJsonSerializerSettingsMethod": true,
|
||
|
"serializeTypeInformation": false,
|
||
|
"queryNullValue": "",
|
||
|
"className": "{controller}Client",
|
||
|
"operationGenerationMode": "MultipleClientsFromOperationId",
|
||
|
"generateOptionalParameters": false,
|
||
|
"generateJsonMethods": true,
|
||
|
"parameterArrayType": "System.Collections.Generic.IEnumerable",
|
||
|
"parameterDictionaryType": "System.Collections.Generic.IDictionary",
|
||
|
"responseArrayType": "System.Collections.ObjectModel.ObservableCollection",
|
||
|
"responseDictionaryType": "System.Collections.Generic.Dictionary",
|
||
|
"wrapResponses": false,
|
||
|
"generateResponseClasses": true,
|
||
|
"responseClass": "SwaggerResponse",
|
||
|
"namespace": "MyNamespace",
|
||
|
"requiredPropertiesMustBeDefined": true,
|
||
|
"dateType": "System.DateTime",
|
||
|
"dateTimeType": "System.DateTime",
|
||
|
"timeType": "System.TimeSpan",
|
||
|
"timeSpanType": "System.TimeSpan",
|
||
|
"arrayType": "System.Collections.ObjectModel.ObservableCollection",
|
||
|
"dictionaryType": "System.Collections.Generic.Dictionary",
|
||
|
"arrayBaseType": "System.Collections.ObjectModel.ObservableCollection",
|
||
|
"dictionaryBaseType": "System.Collections.Generic.Dictionary",
|
||
|
"classStyle": "Inpc",
|
||
|
"generateDefaultValues": true,
|
||
|
"generateDataAnnotations": true,
|
||
|
"excludedTypeNames": [],
|
||
|
"handleReferences": false,
|
||
|
"generateImmutableArrayProperties": false,
|
||
|
"generateImmutableDictionaryProperties": false,
|
||
|
"output": null
|
||
|
},
|
||
|
"swaggerToCSharpController": {
|
||
|
"controllerStyle": "Partial",
|
||
|
"useCancellationToken": false,
|
||
|
"aspNetNamespace": "System.Web.Http",
|
||
|
"className": "{controller}",
|
||
|
"operationGenerationMode": "MultipleClientsFromOperationId",
|
||
|
"additionalNamespaceUsages": [
|
||
|
"System.Web.Http"
|
||
|
],
|
||
|
"generateOptionalParameters": false,
|
||
|
"generateJsonMethods": true,
|
||
|
"parameterArrayType": "System.Collections.Generic.IEnumerable",
|
||
|
"parameterDictionaryType": "System.Collections.Generic.IDictionary",
|
||
|
"responseArrayType": "System.Collections.ObjectModel.ObservableCollection",
|
||
|
"responseDictionaryType": "System.Collections.Generic.Dictionary",
|
||
|
"wrapResponses": false,
|
||
|
"generateResponseClasses": true,
|
||
|
"responseClass": "SwaggerResponse",
|
||
|
"namespace": "MyNamespace",
|
||
|
"requiredPropertiesMustBeDefined": true,
|
||
|
"dateType": "System.DateTime",
|
||
|
"dateTimeType": "System.DateTime",
|
||
|
"timeType": "System.TimeSpan",
|
||
|
"timeSpanType": "System.TimeSpan",
|
||
|
"arrayType": "System.Collections.Generic.IEnumerable",
|
||
|
"dictionaryType": "System.Collections.Generic.Dictionary",
|
||
|
"arrayBaseType": "System.Collections.ObjectModel.ObservableCollection",
|
||
|
"dictionaryBaseType": "System.Collections.Generic.Dictionary",
|
||
|
"classStyle": "Inpc",
|
||
|
"generateDefaultValues": true,
|
||
|
"generateDataAnnotations": true,
|
||
|
"excludedTypeNames": [],
|
||
|
"handleReferences": false,
|
||
|
"generateImmutableArrayProperties": false,
|
||
|
"generateImmutableDictionaryProperties": false,
|
||
|
"output": null
|
||
|
}
|
||
|
}
|
||
|
}
|