Guest User

config.nswag

a guest
Jun 18th, 2020
59
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "runtime": "NetCore31",
  3.   "defaultVariables": null,
  4.   "documentGenerator": {
  5.     "aspNetCoreToOpenApi": {
  6.       "project": "../SwaggerExampleApi/SwaggerExample.Api.csproj",
  7.       "msBuildProjectExtensionsPath": null,
  8.       "configuration": null,
  9.       "runtime": null,
  10.       "targetFramework": null,
  11.       "noBuild": true,
  12.       "verbose": true,
  13.       "workingDirectory": null,
  14.       "requireParametersWithoutDefault": false,
  15.       "apiGroupNames": null,
  16.       "defaultPropertyNameHandling": "Default",
  17.       "defaultReferenceTypeNullHandling": "Null",
  18.       "defaultDictionaryValueReferenceTypeNullHandling": "NotNull",
  19.       "defaultResponseReferenceTypeNullHandling": "NotNull",
  20.       "defaultEnumHandling": "Integer",
  21.       "flattenInheritanceHierarchy": false,
  22.       "generateKnownTypes": true,
  23.       "generateEnumMappingDescription": false,
  24.       "generateXmlObjects": false,
  25.       "generateAbstractProperties": false,
  26.       "generateAbstractSchemas": true,
  27.       "ignoreObsoleteProperties": false,
  28.       "allowReferencesWithProperties": false,
  29.       "excludedTypeNames": [],
  30.       "serviceHost": null,
  31.       "serviceBasePath": null,
  32.       "serviceSchemes": [],
  33.       "infoTitle": "My Title",
  34.       "infoDescription": null,
  35.       "infoVersion": "1.0.0",
  36.       "documentTemplate": null,
  37.       "documentProcessorTypes": [],
  38.       "operationProcessorTypes": [],
  39.       "typeNameGeneratorType": null,
  40.       "schemaNameGeneratorType": null,
  41.       "contractResolverType": null,
  42.       "serializerSettingsType": null,
  43.       "useDocumentProvider": true,
  44.       "documentName": "v1",
  45.       "aspNetCoreEnvironment": null,
  46.       "createWebHostBuilderMethod": null,
  47.       "startupType": null,
  48.       "allowNullableBodyParameters": true,
  49.       "output": null,
  50.       "outputType": "Swagger2",
  51.       "assemblyPaths": [],
  52.       "assemblyConfig": null,
  53.       "referencePaths": [],
  54.       "useNuGetCache": false
  55.     }
  56.   },
  57.   "codeGenerators": {
  58.     "openApiToTypeScriptClient": {
  59.       "className": "{controller}Client",
  60.       "moduleName": "",
  61.       "namespace": "",
  62.       "typeScriptVersion": 2.7,
  63.       "template": "Fetch",
  64.       "promiseType": "Promise",
  65.       "httpClass": "HttpClient",
  66.       "withCredentials": false,
  67.       "useSingletonProvider": false,
  68.       "injectionTokenType": "OpaqueToken",
  69.       "rxJsVersion": 6,
  70.       "dateTimeType": "Date",
  71.       "nullValue": "Undefined",
  72.       "generateClientClasses": true,
  73.       "generateClientInterfaces": false,
  74.       "generateOptionalParameters": false,
  75.       "exportTypes": true,
  76.       "wrapDtoExceptions": false,
  77.       "exceptionClass": "ApiException",
  78.       "clientBaseClass": null,
  79.       "wrapResponses": false,
  80.       "wrapResponseMethods": [],
  81.       "generateResponseClasses": true,
  82.       "responseClass": "SwaggerResponse",
  83.       "protectedMethods": [],
  84.       "configurationClass": null,
  85.       "useTransformOptionsMethod": false,
  86.       "useTransformResultMethod": false,
  87.       "generateDtoTypes": true,
  88.       "operationGenerationMode": "MultipleClientsFromOperationId",
  89.       "markOptionalProperties": true,
  90.       "generateCloneMethod": false,
  91.       "typeStyle": "Interface",
  92.       "classTypes": [],
  93.       "extendedClasses": [],
  94.       "extensionCode": null,
  95.       "generateDefaultValues": true,
  96.       "excludedTypeNames": [],
  97.       "excludedParameterNames": [],
  98.       "handleReferences": false,
  99.       "generateConstructorInterface": true,
  100.       "convertConstructorInterfaceData": false,
  101.       "importRequiredTypes": true,
  102.       "useGetBaseUrlMethod": false,
  103.       "baseUrlTokenName": "API_BASE_URL",
  104.       "queryNullValue": "",
  105.       "inlineNamedDictionaries": false,
  106.       "inlineNamedAny": false,
  107.       "templateDirectory": "./nswag-overrides",
  108.       "typeNameGeneratorType": null,
  109.       "propertyNameGeneratorType": null,
  110.       "enumNameGeneratorType": null,
  111.       "serviceHost": null,
  112.       "serviceSchemes": null,
  113.       "output": "../SwaggerExampleFrontend/api/client.ts"
  114.     }
  115.   }
  116. }
RAW Paste Data