Skip to content

Commit

Permalink
Merge pull request #687 from aml-org/publish-5.5.2
Browse files Browse the repository at this point in the history
W-15770660 Publish 5.5.2
  • Loading branch information
damianpedra authored May 28, 2024
2 parents 36dff0f + 2882b32 commit 1cf318e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ val ivyLocal = Resolver.file("ivy", file(Path.userHome.absolutePath + "/.ivy2/lo

name := "amf-core"
ThisBuild / scalaVersion := "2.12.15"
ThisBuild / version := "5.5.1"
ThisBuild / version := "5.5.2"

publish := {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ object ProfileName {
case "RAML" | Raml10.id => Raml10Profile // for compatibility
case AsyncApi.id => AsyncProfile
case AsyncApi20.id => Async20Profile
case AsyncApi21.id => Async20Profile
case AsyncApi22.id => Async20Profile
case AsyncApi23.id => Async20Profile
case AsyncApi24.id => Async20Profile
case AsyncApi25.id => Async20Profile
case AsyncApi26.id => Async20Profile
case Grpc.id => GrpcProfile
case GraphQL.id => GraphQLProfile
case GraphQLFederation.id => GraphQLFederationProfile
Expand All @@ -124,10 +130,12 @@ object ProfileName {

object MessageStyle {
def apply(name: String): MessageStyle = name match {
case Raml10.id | Raml08.id => RAMLStyle
case Oas20.id | Oas30.id => OASStyle
case AsyncApi.id | AsyncApi20.id => OASStyle
case _ => AMFStyle
case Raml10.id | Raml08.id => RAMLStyle
case Oas20.id | Oas30.id => OASStyle
case AsyncApi.id | AsyncApi20.id | AsyncApi21.id | AsyncApi22.id | AsyncApi23.id | AsyncApi24.id | AsyncApi25.id |
AsyncApi26.id =>
OASStyle
case _ => AMFStyle
}
}

Expand Down
7 changes: 4 additions & 3 deletions shared/src/main/scala/amf/core/internal/remote/Spec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ object Spec {
trait Spec {
val id: String

def isRaml: Boolean = this == Raml10 || this == Raml08
def isOas: Boolean = this == Oas20 || this == Oas30
def isAsync: Boolean = this == AsyncApi || this == AsyncApi20
def isRaml: Boolean = this == Raml10 || this == Raml08
def isOas: Boolean = this == Oas20 || this == Oas30
def isAsync: Boolean =
this == AsyncApi || this == AsyncApi20 || this == AsyncApi21 || this == AsyncApi22 || this == AsyncApi23 || this == AsyncApi24 || this == AsyncApi25 || this == AsyncApi26

val mediaType: String
}
Expand Down

0 comments on commit 1cf318e

Please sign in to comment.