[bugfix] Sanitize incoming PropertyValue fields (#2722)

This commit is contained in:
tobi
2024-03-04 11:46:59 +01:00
committed by GitHub
parent 0b35257312
commit f487fc5d4b
3 changed files with 144 additions and 0 deletions

View File

@ -387,6 +387,12 @@ type WithName interface {
SetActivityStreamsName(vocab.ActivityStreamsNameProperty)
}
// WithValue represents an activity with SchemaValueProperty
type WithValue interface {
GetSchemaValue() vocab.SchemaValueProperty
SetSchemaValue(vocab.SchemaValueProperty)
}
// WithImage represents an activity with ActivityStreamsImageProperty
type WithImage interface {
GetActivityStreamsImage() vocab.ActivityStreamsImageProperty