use star as swagger model

This commit is contained in:
Michael Jerger 2023-11-08 08:56:22 +01:00
parent 18f4c514ec
commit dc1a82bf4c
4 changed files with 19 additions and 2 deletions

View file

@ -25,7 +25,10 @@ var KnownSourceTypes = SourceTypes{
ForgejoSourceType,
}
// Star activity for adding a star to an repository
// swagger:model
type Star struct {
// swagger: ignore
ap.Activity
// Source identifies the system generated this Activity. Exact one value has to be specified.
Source SourceType `jsonld:"source,omitempty"`