Skip to content

Commit ae428eb

Browse files
committed
Covert ParametersBean booleans to strings
1 parent 6f30640 commit ae428eb

6 files changed

Lines changed: 70 additions & 65 deletions

File tree

api/openapi.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17154,18 +17154,18 @@ components:
1715417154
waitForOngoingUpdatesInSecs: waitForOngoingUpdatesInSecs
1715517155
appId: appId
1715617156
loaddata: loaddata
17157-
exportpartitions: true
17157+
exportpartitions: exportpartitions
1715817158
connection: connection
1715917159
cube: cube
1716017160
overwrite: overwrite
1716117161
restructureOption: restructureOption
17162-
exportdata: true
17162+
exportdata: exportdata
1716317163
restEncryPassword: restEncryPassword
1716417164
targetApplicationName: targetApplicationName
1716517165
compress: compress
1716617166
executeScript: executeScript
1716717167
buildMethod: PARENT-CHILD
17168-
exportfilters: true
17168+
exportfilters: exportfilters
1716917169
deleteExcelOnSuccess: deleteExcelOnSuccess
1717017170
generateArtifactList: generateArtifactList
1717117171
script: script
@@ -17273,7 +17273,7 @@ components:
1727317273
- dateDimensionLeaves
1727417274
enableSandboxing: enableSandboxing
1727517275
catalogExcelPath: catalogExcelPath
17276-
lockForUpdate: true
17276+
lockForUpdate: lockForUpdate
1727717277
catalogZipPath: catalogZipPath
1727817278
analyzeSheetName: analyzeSheetName
1727917279
includeServerLevel: includeServerLevel
@@ -17284,9 +17284,9 @@ components:
1728417284
dataLevel: ALL_DATA
1728517285
option: option
1728617286
discoverDimensionTables: discoverDimensionTables
17287-
forceDimBuild: true
17287+
forceDimBuild: forceDimBuild
1728817288
termOption: termOption
17289-
useConnection: true
17289+
useConnection: useConnection
1729017290
rule: rule
1729117291
dimDesignationMode: dimDesignationMode
1729217292
basedOnQueryData: basedOnQueryData
@@ -17301,7 +17301,7 @@ components:
1730117301
enableAlternateRollups: enableAlternateRollups
1730217302
exportDynamicBlocks: exportDynamicBlocks
1730317303
columnFormat: columnFormat
17304-
physical: true
17304+
physical: physical
1730517305
timestamp: timestamp
1730617306
abortOnError: abortOnError
1730717307
zipFileName: zipFileName
@@ -17317,7 +17317,7 @@ components:
1731717317
- selectedDimensions
1731817318
- selectedDimensions
1731917319
createFiles: createFiles
17320-
useCatalogPath: true
17320+
useCatalogPath: useCatalogPath
1732117321
artifactList: artifactList
1732217322
calc: calc
1732317323
user: user
@@ -17390,18 +17390,18 @@ components:
1739017390
waitForOngoingUpdatesInSecs: waitForOngoingUpdatesInSecs
1739117391
appId: appId
1739217392
loaddata: loaddata
17393-
exportpartitions: true
17393+
exportpartitions: exportpartitions
1739417394
connection: connection
1739517395
cube: cube
1739617396
overwrite: overwrite
1739717397
restructureOption: restructureOption
17398-
exportdata: true
17398+
exportdata: exportdata
1739917399
restEncryPassword: restEncryPassword
1740017400
targetApplicationName: targetApplicationName
1740117401
compress: compress
1740217402
executeScript: executeScript
1740317403
buildMethod: PARENT-CHILD
17404-
exportfilters: true
17404+
exportfilters: exportfilters
1740517405
deleteExcelOnSuccess: deleteExcelOnSuccess
1740617406
generateArtifactList: generateArtifactList
1740717407
script: script
@@ -17509,7 +17509,7 @@ components:
1750917509
- dateDimensionLeaves
1751017510
enableSandboxing: enableSandboxing
1751117511
catalogExcelPath: catalogExcelPath
17512-
lockForUpdate: true
17512+
lockForUpdate: lockForUpdate
1751317513
catalogZipPath: catalogZipPath
1751417514
analyzeSheetName: analyzeSheetName
1751517515
includeServerLevel: includeServerLevel
@@ -17520,9 +17520,9 @@ components:
1752017520
dataLevel: ALL_DATA
1752117521
option: option
1752217522
discoverDimensionTables: discoverDimensionTables
17523-
forceDimBuild: true
17523+
forceDimBuild: forceDimBuild
1752417524
termOption: termOption
17525-
useConnection: true
17525+
useConnection: useConnection
1752617526
rule: rule
1752717527
dimDesignationMode: dimDesignationMode
1752817528
basedOnQueryData: basedOnQueryData
@@ -17537,7 +17537,7 @@ components:
1753717537
enableAlternateRollups: enableAlternateRollups
1753817538
exportDynamicBlocks: exportDynamicBlocks
1753917539
columnFormat: columnFormat
17540-
physical: true
17540+
physical: physical
1754117541
timestamp: timestamp
1754217542
abortOnError: abortOnError
1754317543
zipFileName: zipFileName
@@ -17553,7 +17553,7 @@ components:
1755317553
- selectedDimensions
1755417554
- selectedDimensions
1755517555
createFiles: createFiles
17556-
useCatalogPath: true
17556+
useCatalogPath: useCatalogPath
1755717557
artifactList: artifactList
1755817558
calc: calc
1755917559
user: user
@@ -17572,15 +17572,15 @@ components:
1757217572
restructureOption:
1757317573
type: string
1757417574
forceDimBuild:
17575-
type: boolean
17575+
type: string
1757617576
script:
1757717577
type: string
1757817578
option:
1757917579
type: string
1758017580
loaddata:
1758117581
type: string
1758217582
useConnection:
17583-
type: boolean
17583+
type: string
1758417584
connection:
1758517585
type: string
1758617586
user:
@@ -17733,27 +17733,27 @@ components:
1773317733
reportScriptFilename:
1773417734
type: string
1773517735
lockForUpdate:
17736-
type: boolean
17736+
type: string
1773717737
isScriptContent:
1773817738
type: string
1773917739
useCatalogPath:
17740-
type: boolean
17740+
type: string
1774117741
exportdata:
17742-
type: boolean
17742+
type: string
1774317743
cube:
1774417744
type: string
1774517745
filetype:
1774617746
type: string
1774717747
exportpartitions:
17748-
type: boolean
17748+
type: string
1774917749
exportfilters:
17750-
type: boolean
17750+
type: string
1775117751
restEncryPassword:
1775217752
type: string
1775317753
catalogZipPath:
1775417754
type: string
1775517755
physical:
17756-
type: boolean
17756+
type: string
1775717757
type: object
1775817758
RTSV:
1775917759
example:

docs/ParametersBean.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Name | Type | Description | Notes
88
**File** | **string** | | [optional]
99
**AbortOnError** | **string** | | [optional]
1010
**RestructureOption** | **string** | | [optional]
11-
**ForceDimBuild** | **bool** | | [optional]
11+
**ForceDimBuild** | **string** | | [optional]
1212
**Script** | **string** | | [optional]
1313
**Option** | **string** | | [optional]
1414
**Loaddata** | **string** | | [optional]
15-
**UseConnection** | **bool** | | [optional]
15+
**UseConnection** | **string** | | [optional]
1616
**Connection** | **string** | | [optional]
1717
**User** | **string** | | [optional]
1818
**Password** | **string** | | [optional]
@@ -74,17 +74,17 @@ Name | Type | Description | Notes
7474
**HideShadow** | **string** | | [optional]
7575
**WaitForOngoingUpdatesInSecs** | **string** | | [optional]
7676
**ReportScriptFilename** | **string** | | [optional]
77-
**LockForUpdate** | **bool** | | [optional]
77+
**LockForUpdate** | **string** | | [optional]
7878
**IsScriptContent** | **string** | | [optional]
79-
**UseCatalogPath** | **bool** | | [optional]
80-
**Exportdata** | **bool** | | [optional]
79+
**UseCatalogPath** | **string** | | [optional]
80+
**Exportdata** | **string** | | [optional]
8181
**Cube** | **string** | | [optional]
8282
**Filetype** | **string** | | [optional]
83-
**Exportpartitions** | **bool** | | [optional]
84-
**Exportfilters** | **bool** | | [optional]
83+
**Exportpartitions** | **string** | | [optional]
84+
**Exportfilters** | **string** | | [optional]
8585
**RestEncryPassword** | **string** | | [optional]
8686
**CatalogZipPath** | **string** | | [optional]
87-
**Physical** | **bool** | | [optional]
87+
**Physical** | **string** | | [optional]
8888

8989
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9090

process.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,16 @@ cat temp.json | jq '.definitions.ParametersBean.properties.buildMethod.enum = ["
562562
cat temp.json | jq '.definitions.ParametersBean.properties.buildOption.enum = ["NONE", "RETAIN_ALL_DATA", "RETAIN_INPUT_DATA", "RETAIN_LEAF_DATA", "REMOVE_ALL_DATA"]' > json.tmp && mv json.tmp temp.json
563563
cat temp.json | jq '.definitions.ParametersBean.properties.dataLevel.enum = ["ALL_DATA", "UPPER_LEVEL_BLOCKS", "NON_INPUT_BLOCKS", "LEVEL_ZERO_BLOCKS", "INPUT_LEVEL_DATA_BLOCKS"]' > json.tmp && mv json.tmp temp.json
564564
cat temp.json | jq '.definitions.ParametersBean.properties.isScriptContent.type = "string"' > json.tmp && mv json.tmp temp.json
565-
cat temp.json | jq '.definitions.ParametersBean.properties.lockForUpdate.type = "string"' > json.tmp && mv json.tmp temp.jsonS
566-
cat temp.json | jq '.definitions.ParametersBean.properties.useConnection.type = "boolean"' > json.tmp && mv json.tmp temp.json
567-
cat temp.json | jq '.definitions.ParametersBean.properties.useConnection.nullable = true' > json.tmp && mv json.tmp temp.json
568-
cat temp.json | jq '.definitions.ParametersBean.properties.forceDimBuild.type = "boolean"' > json.tmp && mv json.tmp temp.json
565+
cat temp.json | jq '.definitions.ParametersBean.properties.lockForUpdate.type = "string"' > json.tmp && mv json.tmp temp.json
566+
cat temp.json | jq '.definitions.ParametersBean.properties.useCatalogPath.type = "string"' > json.tmp && mv json.tmp temp.json
567+
cat temp.json | jq '.definitions.ParametersBean.properties.lockForUpdate.type = "string"' > json.tmp && mv json.tmp temp.json
568+
cat temp.json | jq '.definitions.ParametersBean.properties.exportdata.type = "string"' > json.tmp && mv json.tmp temp.json
569+
cat temp.json | jq '.definitions.ParametersBean.properties.exportpartitions.type = "string"' > json.tmp && mv json.tmp temp.json
570+
cat temp.json | jq '.definitions.ParametersBean.properties.exportfilters.type = "string"' > json.tmp && mv json.tmp temp.json
571+
cat temp.json | jq '.definitions.ParametersBean.properties.physical.type = "string"' > json.tmp && mv json.tmp temp.json
572+
573+
574+
569575

570576

571577
# fixing casing of action enum - causes problems

processed.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19047,7 +19047,7 @@
1904719047
"type": "string"
1904819048
},
1904919049
"forceDimBuild": {
19050-
"type": "boolean"
19050+
"type": "string"
1905119051
},
1905219052
"script": {
1905319053
"type": "string"
@@ -19059,8 +19059,7 @@
1905919059
"type": "string"
1906019060
},
1906119061
"useConnection": {
19062-
"type": "boolean",
19063-
"nullable": true
19062+
"type": "string"
1906419063
},
1906519064
"connection": {
1906619065
"type": "string"
@@ -19283,16 +19282,16 @@
1928319282
"type": "string"
1928419283
},
1928519284
"lockForUpdate": {
19286-
"type": "boolean"
19285+
"type": "string"
1928719286
},
1928819287
"isScriptContent": {
1928919288
"type": "string"
1929019289
},
1929119290
"useCatalogPath": {
19292-
"type": "boolean"
19291+
"type": "string"
1929319292
},
1929419293
"exportdata": {
19295-
"type": "boolean"
19294+
"type": "string"
1929619295
},
1929719296
"cube": {
1929819297
"type": "string"
@@ -19301,10 +19300,10 @@
1930119300
"type": "string"
1930219301
},
1930319302
"exportpartitions": {
19304-
"type": "boolean"
19303+
"type": "string"
1930519304
},
1930619305
"exportfilters": {
19307-
"type": "boolean"
19306+
"type": "string"
1930819307
},
1930919308
"restEncryPassword": {
1931019309
"type": "string"
@@ -19313,7 +19312,7 @@
1931319312
"type": "string"
1931419313
},
1931519314
"physical": {
19316-
"type": "boolean"
19315+
"type": "string"
1931719316
}
1931819317
}
1931919318
},

src/EssSharp/Extensions/Extensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -540,9 +540,9 @@ internal static List<GridDimension> ToModelGridDimensions( this EssQueryReport.R
540540
PartialDataExpression = options.PartialDataExpression,
541541

542542
// EssJobType.DimBuild
543-
ForceDimBuild = options.ForceDimBuild ?? false,
543+
ForceDimBuild = options.ForceDimBuild?.ToString().ToLowerInvariant(),
544544
RestructureOption = options?.RestructureOption?.ToString().ToUpperInvariant() /*.HasValue && Enum.IsDefined(typeof(ParametersBean.RestructureOptionEnum), (int)options.RestructureOption) ? (ParametersBean.RestructureOptionEnum)options.RestructureOption : null*/,
545-
UseConnection = options.UseConnection ?? false,
545+
UseConnection = options.UseConnection?.ToString().ToLowerInvariant(),
546546
Connection = options.Connection,
547547
User = options.User,
548548
Password = options.Password,
@@ -575,7 +575,7 @@ internal static List<GridDimension> ToModelGridDimensions( this EssQueryReport.R
575575

576576
// EssJobType.ExecuteReport
577577
IsScriptContent = options?.IsScriptContent?.ToString().ToLowerInvariant(),
578-
LockForUpdate = options.LockForUpdate ?? false,
578+
LockForUpdate = options.LockForUpdate?.ToString().ToLowerInvariant(),
579579
ReportScriptFilename = options.ReportScriptFilename,
580580

581581
// EssJobType.LCMExport

0 commit comments

Comments
 (0)