Skip to content

Commit

Permalink
Fix actions definitions and subcard versioning (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcam206 committed Oct 16, 2018
1 parent 31715c7 commit 427b3a3
Showing 1 changed file with 19 additions and 29 deletions.
48 changes: 19 additions & 29 deletions schemas/adaptive-card.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@
"properties": {
"type": {
"type": "string",
"description": "Must be `\"Action.OpenUrl\"`.",
"enum": [
"Action.OpenUrl"
]
"description": "Must be `\"Action.OpenUrl\"`."
},
"title": {
"type": "string",
Expand Down Expand Up @@ -94,10 +91,7 @@
"properties": {
"type": {
"type": "string",
"description": "Must be `\"Action.ShowCard\"`.",
"enum": [
"Action.ShowCard"
]
"description": "Must be `\"Action.ShowCard\"`."
},
"title": {
"type": "string",
Expand Down Expand Up @@ -125,10 +119,7 @@
"properties": {
"type": {
"type": "string",
"description": "Must be `\"Action.Submit\"`.",
"enum": [
"Action.Submit"
]
"description": "Must be `\"Action.Submit\"`."
},
"title": {
"type": "string",
Expand Down Expand Up @@ -182,15 +173,14 @@
"selectAction": {
"description": "An Action that will be invoked when the card is tapped or selected. `Action.ShowCard` is not supported.",
"type": "object",
"enum": [
"Action.Submit",
"Action.OpenUrl"
"oneOf": [
{ "$ref": "#/definitions/Action.Submit" },
{ "$ref": "#/definitions/Action.OpenUrl" }
]
}
},
"required": [
"type",
"version"
"type"
]
},
"CardElement": {
Expand Down Expand Up @@ -316,9 +306,9 @@
"selectAction": {
"description": "An Action that will be invoked when the `Column` is tapped or selected. `Action.ShowCard` is not supported.",
"type": "object",
"enum": [
"Action.Submit",
"Action.OpenUrl"
"oneOf": [
{ "$ref": "#/definitions/Action.Submit" },
{ "$ref": "#/definitions/Action.OpenUrl" }
]
},
"style": {
Expand Down Expand Up @@ -368,9 +358,9 @@
"selectAction": {
"description": "An Action that will be invoked when the `ColumnSet` is tapped or selected. `Action.ShowCard` is not supported.",
"type": "object",
"enum": [
"Action.Submit",
"Action.OpenUrl"
"oneOf": [
{ "$ref": "#/definitions/Action.Submit" },
{ "$ref": "#/definitions/Action.OpenUrl" }
]
},
"type": {
Expand Down Expand Up @@ -409,9 +399,9 @@
"selectAction": {
"description": "An Action that will be invoked when the `Container` is tapped or selected. `Action.ShowCard` is not supported.",
"type": "object",
"enum": [
"Action.Submit",
"Action.OpenUrl"
"oneOf": [
{ "$ref": "#/definitions/Action.Submit" },
{ "$ref": "#/definitions/Action.OpenUrl" }
]
},
"style": {
Expand Down Expand Up @@ -584,9 +574,9 @@
"selectAction": {
"description": "An Action that will be invoked when the `Image` is tapped or selected. `Action.ShowCard` is not supported.",
"type": "object",
"enum": [
"Action.Submit",
"Action.OpenUrl"
"oneOf": [
{ "$ref": "#/definitions/Action.Submit" },
{ "$ref": "#/definitions/Action.OpenUrl" }
]
},
"size": {
Expand Down

0 comments on commit 427b3a3

Please sign in to comment.