github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/examples/authentication/models/principal.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package models
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	"context"
    10  
    11  	"github.com/go-openapi/strfmt"
    12  )
    13  
    14  // Principal principal
    15  //
    16  // swagger:model principal
    17  type Principal string
    18  
    19  // Validate validates this principal
    20  func (m Principal) Validate(formats strfmt.Registry) error {
    21  	return nil
    22  }
    23  
    24  // ContextValidate validates this principal based on context it is used
    25  func (m Principal) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
    26  	return nil
    27  }