github.com/circl-dev/go-swagger@v0.31.0/examples/composed-auth/models/item.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  // Item item
    15  //
    16  // swagger:model Item
    17  type Item string
    18  
    19  // Validate validates this item
    20  func (m Item) Validate(formats strfmt.Registry) error {
    21  	return nil
    22  }
    23  
    24  // ContextValidate validates this item based on context it is used
    25  func (m Item) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
    26  	return nil
    27  }