Skip to content

Commit d56d08f

Browse files
committed
fix: remove date-time format from catalogDate field
Signed-off-by: Paul Horton <[email protected]>
1 parent cdecca3 commit d56d08f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

spec/openapi.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ components:
383383
ApiComponentDetailsDTOV2:
384384
properties:
385385
catalogDate:
386-
format: date-time
387386
type: string
388387
component:
389388
$ref: '#/components/schemas/ApiComponentDTOV2'
@@ -6812,9 +6811,13 @@ paths:
68126811
identityProviderXml:
68136812
description: Enter the SAML metadata XML of your IdP. Refer to the
68146813
IdP documentation to obtain this metadata.
6814+
format: binary
68156815
type: string
68166816
samlConfiguration:
68176817
$ref: '#/components/schemas/ApiSamlConfigurationDTO'
6818+
required:
6819+
- identityProviderXml
6820+
- samlConfiguration
68186821
type: object
68196822
responses:
68206823
'204':

update-spec.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,5 +514,10 @@
514514
'type': 'string'
515515
}
516516

517+
print('Patching schema: ApiComponentChangeActionDTO...')
518+
json_spec['components']['schemas']['ApiComponentDetailsDTOV2']['properties']['catalogDate'] = {
519+
'type': 'string'
520+
}
521+
517522
with open('./spec/openapi.yaml', 'w') as output_yaml_specfile:
518523
output_yaml_specfile.write(yaml_dump(json_spec))

0 commit comments

Comments
 (0)