Skip to content

Commit

Permalink
W 16346170/bump dependencies (#1044)
Browse files Browse the repository at this point in the history
* bump dependencies

* Update ProfileNames
  • Loading branch information
emilianoascona authored Jul 31, 2024
1 parent 985462c commit 9233578
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ object ProfileNames {
val GRAPHQL: ProfileName = GraphQLProfile
val GRAPHQL_FEDERATION: ProfileName = GraphQLFederationProfile
val JSONSCHEMA: ProfileName = JsonSchemaProfile
val AVROSCHEMA: ProfileName = AvroSchemaProfile

lazy val specProfiles: Seq[ProfileName] =
Seq(
Expand All @@ -36,7 +37,8 @@ object ProfileNames {
GraphQLProfile,
GraphQLFederationProfile,
GrpcProfile,
JsonSchemaProfile
JsonSchemaProfile,
AvroSchemaProfile
)
}

Expand Down Expand Up @@ -95,6 +97,11 @@ object JsonSchemaProfile extends ProfileName(JsonSchema.id, AMFStyle) {
override def isRaml(): Boolean = false
}

object AvroSchemaProfile extends ProfileName(AvroSchema.id, AMFStyle) {
override def isOas(): Boolean = false
override def isRaml(): Boolean = false
}

object ProfileName {
def unapply(name: String): Option[ProfileName] =
name match {
Expand All @@ -108,6 +115,7 @@ object ProfileName {
case GraphQLProfile.p => Some(GraphQLProfile)
case GraphQLFederationProfile.p => Some(GraphQLFederationProfile)
case JsonSchemaProfile.p => Some(JsonSchemaProfile)
case AvroSchemaProfile.p => Some(AvroSchemaProfile)
case _ => None
}

Expand All @@ -129,6 +137,7 @@ object ProfileName {
case GraphQL.id => GraphQLProfile
case GraphQLFederation.id => GraphQLFederationProfile
case JsonSchema.id => JsonSchemaProfile
case AvroSchema.id => AvroSchemaProfile
case custom => new ProfileName(custom)
}
}
Expand Down
4 changes: 2 additions & 2 deletions dependencies.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version=6.3.0-SNAPSHOT
amf=5.5.3
amf=5.5.4
amf.custom-validator.js=1.7.2
amf.custom-validator-scalajs=0.5.13
amf.custom-validator-scalajs=0.5.14
amf-antlr-parsers=0.7.25

0 comments on commit 9233578

Please sign in to comment.