Skip to content

Commit

Permalink
openapi schemas' additionalProperties are schemas too
Browse files Browse the repository at this point in the history
  • Loading branch information
notEthan committed Jan 29, 2022
1 parent 469ccb6 commit c93f6ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/scorpio/openapi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ module V3
describe_schema = [
openapi_document_schema.definitions['Schema'],
openapi_document_schema.definitions['SchemaReference'],
openapi_document_schema.definitions['Schema'].properties['additionalProperties'],
]
describe_schema.each { |s| s.jsi_schema_instance_modules = [JSI::Schema::Draft04] }

Expand Down Expand Up @@ -108,6 +109,7 @@ module V2
# include on its schema module the jsi_schema_instance_modules that implement schema functionality.
describe_schema = [
openapi_document_schema.definitions['schema'],
openapi_document_schema.definitions['schema'].properties['additionalProperties'],
]
describe_schema.each { |s| s.jsi_schema_instance_modules = [JSI::Schema::Draft04] }

Expand Down

0 comments on commit c93f6ef

Please sign in to comment.