-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make sure all identifiers are valid (#14)
- Loading branch information
Showing
7 changed files
with
149 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package generated | ||
package generated | ||
|
||
type JSONToStruct struct{ | ||
Number1234 string `json:"1234"` | ||
} | ||
type JSONToStruct struct { | ||
_234 string `json:"1234"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"contentType": "application/vnd.microsoft.card.adaptive", | ||
"content": { | ||
"type": "AdaptiveCard", | ||
"body": [ | ||
{ | ||
"type": "TextBlock", | ||
"text": "Hi <at>John Doe</at>" | ||
} | ||
], | ||
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json", | ||
"version": "1.0", | ||
"msteams": { | ||
"entities": [ | ||
{ | ||
"type": "mention", | ||
"text": "<at>John Doe</at>", | ||
"mentioned": { | ||
"id": "29:123124124124", | ||
"name": "John Doe" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package generated | ||
|
||
type JSONToStruct struct { | ||
Content struct { | ||
_schema string `json:"$schema"` | ||
Body []struct { | ||
Text string `json:"text"` | ||
Type string `json:"type"` | ||
} `json:"body"` | ||
Msteams struct { | ||
Entities []struct { | ||
Mentioned struct { | ||
Id string `json:"id"` | ||
Name string `json:"name"` | ||
} `json:"mentioned"` | ||
Text string `json:"text"` | ||
Type string `json:"type"` | ||
} `json:"entities"` | ||
} `json:"msteams"` | ||
Type string `json:"type"` | ||
Version string `json:"version"` | ||
} `json:"content"` | ||
Contenttype string `json:"contentType"` | ||
} |