diff options
author | 2023-05-09 12:16:10 +0200 | |
---|---|---|
committer | 2023-05-09 11:16:10 +0100 | |
commit | 0e29f1f5bb68a48d9b837d7f4e0a16370734955b (patch) | |
tree | f08d203ec8ca8aeea728e5251b1dc3956524b4f4 /vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go | |
parent | [chore/performance] Make sender multiplier configurable (#1750) (diff) | |
download | gotosocial-0e29f1f5bb68a48d9b837d7f4e0a16370734955b.tar.xz |
[feature] Enable federation in/out of profile PropertyValue fields (#1722)
Co-authored-by: kim <grufwub@gmail.com>
Co-authored-by: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go')
-rw-r--r-- | vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go b/vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go index 902f13d4f..b93a0069a 100644 --- a/vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go +++ b/vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go @@ -160,6 +160,8 @@ import ( typeticketdependency "github.com/superseriousbusiness/activity/streams/impl/forgefed/type_ticketdependency" propertyid "github.com/superseriousbusiness/activity/streams/impl/jsonld/property_id" propertytype "github.com/superseriousbusiness/activity/streams/impl/jsonld/property_type" + propertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/property_value" + typepropertyvalue "github.com/superseriousbusiness/activity/streams/impl/schema/type_propertyvalue" propertyblurhash "github.com/superseriousbusiness/activity/streams/impl/toot/property_blurhash" propertydiscoverable "github.com/superseriousbusiness/activity/streams/impl/toot/property_discoverable" propertyfeatured "github.com/superseriousbusiness/activity/streams/impl/toot/property_featured" @@ -1693,6 +1695,18 @@ func (this Manager) DeserializeProfileActivityStreams() func(map[string]interfac } } +// DeserializePropertyValueSchema returns the deserialization method for the +// "SchemaPropertyValue" non-functional property in the vocabulary "Schema" +func (this Manager) DeserializePropertyValueSchema() func(map[string]interface{}, map[string]string) (vocab.SchemaPropertyValue, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SchemaPropertyValue, error) { + i, err := typepropertyvalue.DeserializePropertyValue(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializePublicKeyPemPropertyW3IDSecurityV1 returns the deserialization // method for the "W3IDSecurityV1PublicKeyPemProperty" non-functional property // in the vocabulary "W3IDSecurityV1" @@ -2311,6 +2325,18 @@ func (this Manager) DeserializeUrlPropertyActivityStreams() func(map[string]inte } } +// DeserializeValuePropertySchema returns the deserialization method for the +// "SchemaValueProperty" non-functional property in the vocabulary "Schema" +func (this Manager) DeserializeValuePropertySchema() func(map[string]interface{}, map[string]string) (vocab.SchemaValueProperty, error) { + return func(m map[string]interface{}, aliasMap map[string]string) (vocab.SchemaValueProperty, error) { + i, err := propertyvalue.DeserializeValueProperty(m, aliasMap) + if i == nil { + return nil, err + } + return i, err + } +} + // DeserializeVideoActivityStreams returns the deserialization method for the // "ActivityStreamsVideo" non-functional property in the vocabulary // "ActivityStreams" |