Revision control
Copy as Markdown
/*
* OpenAPI Petstore
*
* This is a sample of Petstore application. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* API version: 1.0.0
*/
package openapi
// Category - A category for a pet
type Category struct {
Id int64 `json:"id,omitempty"`
Name string `json:"name,omitempty" validate:"regexp=^[a-zA-Z0-9]+[a-zA-Z0-9\\\\.\\\\-_]*[a-zA-Z0-9]+$"`
}