Skip to content

Commit b4b9974

Browse files
Merge pull request #722 from Sensedia/aggr-loans
Feat(Loans): PDC400
2 parents 4c3de10 + bd00531 commit b4b9974

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

automation-scripts/dictionary_generator

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ end
130130

131131
# Write headers and rows on given filename
132132
def generate_csv(filename, headers, rows)
133-
CSV.open(filename,'w', {:col_sep => ";"}) do |file|
133+
CSV.open(filename, 'w', col_sep: ";") do |file|
134134
file << headers.values
135135
rows.each do |row|
136136
file << row.values
@@ -252,7 +252,7 @@ oas['paths'].each_with_index do |(path, methods)|
252252
end
253253
end
254254

255-
version = "v" + oas['info']['version'].split(/\./, 3).first
255+
version = "v" + oas['info']['version'].split(/-/, 2).first
256256
filename = output_path + spec['operationId'] + "_" + version + '.csv'
257257
puts ' ├── Writing file ' + filename
258258
if $isRegulatoryRequiredAPI
@@ -265,4 +265,4 @@ oas['paths'].each_with_index do |(path, methods)|
265265
end
266266

267267
puts '> Files generated!'
268-
exit 0
268+
exit 0

swagger-apis/loans/2.5.0-beta.1.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ components:
344344
pattern: '[\w\W\s]*'
345345
maxLength: 2048
346346
meta:
347-
$ref: '#/components/schemas/Meta'
347+
$ref: '#/components/schemas/MetaError'
348348
EnumContractAmortizationScheduled:
349349
type: string
350350
description: |
@@ -1379,6 +1379,18 @@ components:
13791379
maxLength: 20
13801380
format: date-time
13811381
example: '2021-05-21T08:30:00Z'
1382+
MetaError:
1383+
type: object
1384+
description: Meta informações referente à API requisitada.
1385+
required:
1386+
- requestDateTime
1387+
properties:
1388+
requestDateTime:
1389+
description: 'Data e hora da consulta, conforme especificação RFC-3339, formato UTC.'
1390+
type: string
1391+
maxLength: 20
1392+
format: date-time
1393+
example: '2021-05-21T08:30:00Z'
13821394
ResponseLoansContractList:
13831395
type: object
13841396
required:

0 commit comments

Comments
 (0)