Fixes last little pathing mistakes from rename

All specs are passing in all gems and in test-app

Properly generates open api 3 swagger via rake rswag:specs:swaggerize and via bundle exec rspec in test-app dir
This commit is contained in:
Jay Danielian
2019-08-01 09:10:38 -04:00
parent 475929e9aa
commit 032ad5dc54
8 changed files with 25 additions and 21 deletions

View File

@@ -41,7 +41,7 @@ module OpenApi
def validate_body!(metadata, swagger_doc, body)
test_schemas = extract_schemas(metadata)
return if test_schemas.nil?
return if test_schemas.nil? || test_schemas.empty?
components = swagger_doc[:components] || {}
components_schemas = { components: { schemas: components[:schemas] } }