Skip to content

Commit

Permalink
Merge pull request #3 from flock-community/check-correct-openapi-version
Browse files Browse the repository at this point in the history
Add x- for headers
  • Loading branch information
wilmveel authored Nov 30, 2023
2 parents 2eeed16 + 9426319 commit 417a07e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "community.flock.kotlinx.openapi.bindings"
version = "0.0.18"
version = "0.0.19"


val dokkaOutputDir = "$buildDir/dokka"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ val regex = """
\|items\|x-[^\|]*\|$
\|schema\|x-[^\|]*\|$
\|schemas\|[^\|]*\|x-[^\|]*\|$
\|headers\|[^\|]*\|x-[^\|]*\|$
\|properties\|[^\|]*\|x-[^\|]*\|$
\|properties\|[^\|]*\|[^\|]*\|x-[^\|]*\|$
\|parameters\|[^\|]*\|x-[^\|]*\|$
\|paths\|[^\|]*\|[^\|]*\|x-[^\|]*\|${'$'}
\|paths\|[^\|]*\|[^\|]*\|x-[^\|]*\|$
""".trimIndent().split("\n").map { it.toRegex() }

sealed class OpenAPI(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ val regex = """
\|responses\|x-[^\|]*\|$
\|items\|x-[^\|]*\|$
\|schema\|x-[^\|]*\|$
\|headers\|[^\|]*\|x-[^\|]*\|$
\|schemas\|[^\|]*\|x-[^\|]*\|$
\|properties\|[^\|]*\|x-[^\|]*\|$
\|properties\|[^\|]*\|[^\|]*\|x-[^\|]*\|$
\|parameters\|[^\|]*\|x-[^\|]*\|$
\|paths\|[^\|]*\|[^\|]*\|x-[^\|]*\|${'$'}
\|paths\|[^\|]*\|[^\|]*\|x-[^\|]*\|$
""".trimIndent().split("\n").map { it.toRegex() }

sealed class OpenAPI(
Expand Down

0 comments on commit 417a07e

Please sign in to comment.