Skip to content

Commit cb3c377

Browse files
committed
fix: reportTime is number not string in date-time format
Signed-off-by: Paul Horton <[email protected]>
1 parent a993b25 commit cb3c377

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

spec/openapi.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,8 +2105,7 @@ components:
21052105
initiator:
21062106
type: string
21072107
reportTime:
2108-
format: date-time
2109-
type: string
2108+
type: number
21102109
reportTitle:
21112110
type: string
21122111
type: object

update-spec.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,5 +524,10 @@
524524
'type': 'number'
525525
}
526526

527+
print('Patching schema: ApiReportPolicyDataDTOV2...')
528+
json_spec['components']['schemas']['ApiReportPolicyDataDTOV2']['properties']['reportTime'] = {
529+
'type': 'number'
530+
}
531+
527532
with open('./spec/openapi.yaml', 'w') as output_yaml_specfile:
528533
output_yaml_specfile.write(yaml_dump(json_spec))

0 commit comments

Comments
 (0)