Skip to content

Commit

Permalink
Merge pull request #36 from asyncapi/feat/asyncapi-2.6.0
Browse files Browse the repository at this point in the history
feat: asyncapi 2.6.0
  • Loading branch information
Pakisan authored Aug 31, 2023
2 parents 570d319 + 1af89b4 commit 94dbe02
Show file tree
Hide file tree
Showing 61 changed files with 5,625 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class AsyncAPISchemaHtmlRenderer {

private val urlProvider = service<UrlProvider>()
private val schemaTemplateUrl = "/ui/index.html"
private val schemaTemplateCssUrl = "default(1.0.0-next.43).min.css"
private val schemaTemplateJsUrl = "index(1.0.0-next.43).js"
private val schemaTemplateCssUrl = "default(1.0.0-next.48).min.css"
private val schemaTemplateJsUrl = "index(1.0.0-next.48).js"

fun render(request: FullHttpRequest, schemaUrl: String?): String {
schemaUrl ?: return "schema: not found."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AsyncAPISchemaRecognizer {

fun isSupported(version: String?): Boolean {
return when (version) {
"2.0.0", "2.1.0", "2.2.0", "2.3.0", "2.4.0", "2.5.0" -> true
"2.0.0", "2.1.0", "2.2.0", "2.3.0", "2.4.0", "2.5.0", "2.6.0" -> true
else -> false
}
}
Expand Down
Loading

0 comments on commit 94dbe02

Please sign in to comment.