Skip to content

Commit

Permalink
feat: AsyncAPI 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Pakisan committed Aug 31, 2023
1 parent 570d319 commit 1af89b4
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 1af89b4

Please sign in to comment.