Updates README with proper links and examples for new OpenApi 3.0 syntax / features

Missed a few generator items as part of the rename
This commit is contained in:
Jay Danielian
2019-08-04 11:00:33 -04:00
parent 9bc6e2e16a
commit 5a8d1ce359
5 changed files with 313 additions and 85 deletions

View File

@@ -14,12 +14,22 @@ RSpec.configure do |config|
# the root example_group in your specs, e.g. describe '...', swagger_doc: 'v2/swagger.json'
config.swagger_docs = {
'v1/swagger.json' => {
swagger: '2.0',
openapi: '3.0.0',
info: {
title: 'API V1',
version: 'v1'
},
paths: {}
paths: {},
servers: [
{
url: 'https://{defaultHost}',
variables: {
defaultHost: {
default: 'www.example.com'
}
}
}
]
}
}
end