mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 15:22:56 +00:00
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:
@@ -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] } }
|
||||
|
||||
Reference in New Issue
Block a user