Skip to content

Commit

Permalink
W-12689952: use core description field in ibmmq binding description
Browse files Browse the repository at this point in the history
  • Loading branch information
arielmirra committed Feb 14, 2024
1 parent e272f0f commit 26b1b0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import amf.apicontract.client.scala.model.domain.bindings.ibmmq.{
IBMMQServerBinding
}
import amf.core.client.scala.model.domain.AmfObject
import amf.core.client.scala.vocabulary.Namespace.ApiBinding
import amf.core.client.scala.vocabulary.Namespace.{ApiBinding, Core}
import amf.core.client.scala.vocabulary.ValueType
import amf.core.internal.metamodel.Field
import amf.core.internal.metamodel.Type.{Bool, Int, Str}
Expand All @@ -34,16 +34,14 @@ object IBMMQMessageBindingModel extends MessageBindingModel with BindingVersion
)
)

val Description: Field =
Field(
Str,
ApiBinding + "description",
ModelDoc(
ModelVocabularies.ApiBinding,
"description",
"Provides additional information for application developers: describes the message type or format."
)
val Description: Field = Field(
Str,
Core + "description",
ModelDoc(
ModelVocabularies.Core,
"Provides additional information for application developers: describes the message type or format."
)
)

val Expiry: Field =
Field(
Expand Down
2 changes: 1 addition & 1 deletion documentation/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,7 @@ Types:
| ------ | ------ | ------ | ------ | ------ |
| messageType | string | - | The type of the message | `http://a.ml/vocabularies/apiBinding#messageType` |
| headers | string | - | Defines the IBM MQ message headers to include with this message. More than one header can be specified as a comma separated list. | `http://a.ml/vocabularies/apiBinding#headers` |
| description | string | - | Provides additional information for application developers: describes the message type or format. | `http://a.ml/vocabularies/apiBinding#description` |
| description | string | - | | `http://a.ml/vocabularies/core#description` |
| expiry | int | - | This is a period of time expressed in milliseconds and set by the application that puts the message. | `http://a.ml/vocabularies/apiBinding#expiry` |
| bindingVersion | string | - | The version of this binding | `http://a.ml/vocabularies/apiBinding#bindingVersion` |
| type | string | - | Binding for a corresponding known type | `http://a.ml/vocabularies/apiBinding#type` |
Expand Down

0 comments on commit 26b1b0c

Please sign in to comment.