Skip to content

Commit

Permalink
Fix parent_discriminator_schemas being set to nil (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
damiansosnowski authored Dec 10, 2024
1 parent 9a54900 commit 58d98f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openapi_parser/schema_validator/all_of_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def coerce_and_validate(value, schema, **keyword_args)
value,
s,
:parent_all_of => true,
parent_discriminator_schemas: keyword_args[:parent_discriminator_schemas]
parent_discriminator_schemas: keyword_args[:parent_discriminator_schemas] || []
)

if s.type == "object"
Expand Down

0 comments on commit 58d98f0

Please sign in to comment.