github.com/josephspurrier/go-swagger@v0.2.1-0.20221129144919-1f672a142a00/fixtures/goparsing/classification/transitive/mods/pet.go (about)

     1  // Copyright 2015 go-swagger maintainers
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //    http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package mods
    16  
    17  // Pet represents a pet in our store
    18  //
    19  // This model is not explicitly mentioned in the import paths,
    20  // but because it it transitively required by the order
    21  // it should also be collected.
    22  //
    23  // swagger:model pet
    24  type Pet struct {
    25  	// ID the id of this pet
    26  	//
    27  	// required: true
    28  	ID int64 `json:"id"`
    29  
    30  	// Name the name of the pet
    31  	// this is more like the breed or race of the pet
    32  	//
    33  	// required: true
    34  	// min length: 3
    35  	Name string `json:"name"`
    36  
    37  	// Category the category this pet belongs to.
    38  	//
    39  	// required: true
    40  	Category *Category `json:"category"`
    41  }