diff --git a/src/swagger/http/handlers/api.cr b/src/swagger/http/handlers/api.cr index 4d66a8c..64b0d99 100644 --- a/src/swagger/http/handlers/api.cr +++ b/src/swagger/http/handlers/api.cr @@ -4,9 +4,9 @@ require "semantic_version" module Swagger::HTTP class APIHandler include Swagger::HTTP::Handler - + @json : String - + def initialize(document : Document, @endpoint : String, @debug_mode = true) major = SemanticVersion.parse(document.openapi_version).major @swagger_path = "/v#{major}/swagger.json"