-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
receive jsonld is
[]byte
and string
fix error
- Loading branch information
Showing
2 changed files
with
35 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,26 +188,26 @@ func Test_READMEJsonLDTest(t *testing.T) { | |
} | ||
|
||
var jsonld, _ = jsonld_helper.ParseJsonLD(givenJsonLD, nil) | ||
var givenJsonLD = map[string]any{ | ||
"@context": []any{ | ||
var givenJsonLD = `{ | ||
"@context": [ | ||
"activitystreams.json", | ||
map[string]any{ | ||
"schema": "http://schema.org#", | ||
{ | ||
"schema": "http://schema.org#", | ||
"PropertyValue": "schema:PropertyValue", | ||
"value": "schema:value", | ||
}, | ||
}, | ||
"value": "schema:value" | ||
} | ||
], | ||
"as:type": "Person", | ||
"@id": "acct:[email protected]", | ||
"name": "지상 최강의 개발자 쥬니니", | ||
"attachment": []map[string]any{ | ||
"@id": "acct:[email protected]", | ||
"name": "지상 최강의 개발자 쥬니니", | ||
"attachment": [ | ||
{ | ||
"type": "PropertyValue", | ||
"name": "GitHub", | ||
"value": "juunini", | ||
}, | ||
}, | ||
} | ||
"type": "PropertyValue", | ||
"name": "GitHub", | ||
"value": "juunini" | ||
} | ||
] | ||
}` | ||
var readmeJsonLD = map[string]any{ | ||
"@context": []any{ | ||
"activitystreams.json", | ||
|