Skip to content

Commit

Permalink
add AuthMessage schema
Browse files Browse the repository at this point in the history
  • Loading branch information
jmazzitelli committed Aug 28, 2015
1 parent 5c2e577 commit 627f1db
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hawkular-feed-comm/feed-comm-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<name>Hawkular Bus: Feed Communications JSON API</name>

<properties>
<plugin.version.org.jsonschema2pojo>0.4.7</plugin.version.org.jsonschema2pojo>
<plugin.version.org.jsonschema2pojo>0.4.14</plugin.version.org.jsonschema2pojo>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"type": "object",
"extends": {
"type": "object",
"javaType": "org.hawkular.bus.common.BasicMessage"
},
"javaType": "org.hawkular.feedcomm.api.AuthMessage",
"description": "Message properties that are needed for authentication.",
"additionalProperties": false,
"properties": {
"username": {
"type": "string"
},
"password": {
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"type": "object",
"extends": {
"type": "object",
"javaType": "org.hawkular.bus.common.BasicMessage"
"$ref": "AuthMessage.schema.json"
},
"javaType": "org.hawkular.feedcomm.api.EchoRequest",
"description": "A simple request to echo a string back used for testing connectivity.",
Expand Down

0 comments on commit 627f1db

Please sign in to comment.