Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Twin property to IoTHub's RP TestRouteAPI and TestAllRoutes API. This is an optional parameter to these APIs. #3710

Merged
merged 1 commit into from
Aug 27, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3118,6 +3118,32 @@
"message": {
"description": "Routing message",
"$ref": "#/definitions/RoutingMessage"
},
"twin": {
"description": "Routing Twin Reference",
"$ref": "#/definitions/RoutingTwin"
}
}
},
"RoutingTwin": {
"description": "Twin reference input parameter. This is an optional parameter",
"type": "object",
"properties": {
"tags": {
"description": "Twin Tags",
"type": "object"
Copy link
Contributor

@hovsepm hovsepm Aug 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"type": "object" [](start = 10, length = 16)

why is everything of type object? #Closed

Copy link
Contributor Author

@ankurkul ankurkul Aug 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Twin is a IoTHub primitive that takes form of three properties which can be any valid JSON object. Thats why we have defined in swagger as objects. #Closed

},
"properties": {
"properties": {
"desiredProperties" : {
"description": "Twin desired properties",
"type": "object"
},
"reportedProperties" : {
"description": "Twin desired properties",
"type": "object"
}
}
}
}
},
Expand Down Expand Up @@ -3182,6 +3208,10 @@
"route": {
"description": "Route properties",
"$ref": "#/definitions/RouteProperties"
},
"twin": {
"description": "Routing Twin Reference",
"$ref": "#/definitions/RoutingTwin"
}
}
},
Expand Down