invite token generate lint (#834)

This commit is contained in:
Michael Quigley
2025-02-03 13:20:49 -05:00
parent 62d8086aed
commit 9c77fba98a
12 changed files with 226 additions and 56 deletions

View File

@ -6,10 +6,12 @@ package admin
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"fmt"
"github.com/go-openapi/runtime"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// InviteTokenGenerateReader is a Reader for the InviteTokenGenerate structure.
@ -272,3 +274,41 @@ func (o *InviteTokenGenerateInternalServerError) readResponse(response runtime.C
return nil
}
/*
InviteTokenGenerateBody invite token generate body
swagger:model InviteTokenGenerateBody
*/
type InviteTokenGenerateBody struct {
// tokens
Tokens []string `json:"tokens"`
}
// Validate validates this invite token generate body
func (o *InviteTokenGenerateBody) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this invite token generate body based on context it is used
func (o *InviteTokenGenerateBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (o *InviteTokenGenerateBody) MarshalBinary() ([]byte, error) {
if o == nil {
return nil, nil
}
return swag.WriteJSON(o)
}
// UnmarshalBinary interface implementation
func (o *InviteTokenGenerateBody) UnmarshalBinary(b []byte) error {
var res InviteTokenGenerateBody
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*o = res
return nil
}