autogits/bots-common/gitea-generated/models/pull_review_request_options.go
Adam Majer 598ecbbd5a .
2024-07-07 21:12:40 +02:00

54 lines
1.3 KiB
Go

// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// PullReviewRequestOptions PullReviewRequestOptions are options to add or remove pull review requests
//
// swagger:model PullReviewRequestOptions
type PullReviewRequestOptions struct {
// reviewers
Reviewers []string `json:"reviewers"`
// team reviewers
TeamReviewers []string `json:"team_reviewers"`
}
// Validate validates this pull review request options
func (m *PullReviewRequestOptions) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this pull review request options based on context it is used
func (m *PullReviewRequestOptions) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *PullReviewRequestOptions) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *PullReviewRequestOptions) UnmarshalBinary(b []byte) error {
var res PullReviewRequestOptions
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}