Skip to content

Commit 7fb2c9f

Browse files
handle this case for upgrading to 3.3+ as well
1 parent c71e513 commit 7fb2c9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/JSON/Schema/Modern/Document/OpenAPI.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ sub upgrade ($self, $to_version = SUPPORTED_OAD_VERSIONS->[-1]) {
629629
}
630630
}
631631

632-
if ($to_oas_version eq '3.2') {
632+
if ($to_oas_version ge '3.2') {
633633
foreach my $schema_path ($self->get_entity_locations('response')) {
634634
my $subschema = $self->get($schema_path);
635635
delete $subschema->{description}

0 commit comments

Comments
 (0)