From 2169338ed90364ddb57e83ca0b4d735fee022265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20=C4=BDach?= Date: Sun, 15 Sep 2024 15:36:53 +0200 Subject: [PATCH] make context untyped --- asvocab_base_types.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/asvocab_base_types.go b/asvocab_base_types.go index 61bc971..c704bd3 100644 --- a/asvocab_base_types.go +++ b/asvocab_base_types.go @@ -1,6 +1,7 @@ package astreams import ( + "encoding/json" "sort" "time" ) @@ -55,7 +56,7 @@ type EndpointsOrString struct { // Object represents the base ActivityStreams Object and all of its properties // Most of the other types extend Object type Object struct { - ASContext *ObjectOrLinkOrString `json:"@context,omitempty"` + ASContext json.RawMessage `json:"@context,omitempty"` ASLanguage string `json:"@language,omitempty"` Schema string `json:"schema,omitempty"` ID string `json:"id,omitempty"`