Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion specs/swml/calling/Methods/hangup/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace SWML.Calling;
model Hangup {
@doc("End the call with an optional reason.")
@summary("hangup")
hangup: {
hangup: null | {
@doc("The reason for hanging up the call.")
@example("busy")
reason?: "hangup" | "busy" | "decline";
Expand Down
55 changes: 31 additions & 24 deletions specs/swml/calling/tsp-output/@typespec/json-schema/SWMLObject.json
Original file line number Diff line number Diff line change
Expand Up @@ -580,32 +580,39 @@
"type": "object",
"properties": {
"hangup": {
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"const": "hangup"
},
{
"type": "string",
"const": "busy"
},
{
"type": "string",
"const": "decline"
"anyOf": [
{
"type": "null"
},
{
"type": "object",
"properties": {
"reason": {
"anyOf": [
{
"type": "string",
"const": "hangup"
},
{
"type": "string",
"const": "busy"
},
{
"type": "string",
"const": "decline"
}
],
"examples": [
"busy"
],
"description": "The reason for hanging up the call."
}
],
"examples": [
"busy"
],
"description": "The reason for hanging up the call."
},
"unevaluatedProperties": {
"not": {}
}
}
},
"unevaluatedProperties": {
"not": {}
},
],
"description": "End the call with an optional reason.",
"title": "hangup"
}
Expand Down
Loading