Skip to content

Commit d49c31f

Browse files
authored
Merge pull request #39 from sonatype-nexus-community/fix/quarantineDate-to-vanilla-string
fix: remove `date-time` format from `quarantineDate` field
2 parents 098ed3f + 483f1d6 commit d49c31f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

spec/openapi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,6 @@ components:
969969
policyName:
970970
type: string
971971
quarantineDate:
972-
format: date-time
973972
type: string
974973
quarantined:
975974
type: boolean

update-spec.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,5 +508,11 @@
508508
}
509509
}
510510

511+
# Remove `date-time` format for `quarantineDate`
512+
print('Patching schema: ApiComponentChangeActionDTO...')
513+
json_spec['components']['schemas']['ApiFirewallQuarantinedComponentDto']['properties']['quarantineDate'] = {
514+
'type': 'string'
515+
}
516+
511517
with open('./spec/openapi.yaml', 'w') as output_yaml_specfile:
512518
output_yaml_specfile.write(yaml_dump(json_spec))

0 commit comments

Comments
 (0)