As deepmap/oapi-codegen didn't work with this newer version, upgrade to oapi-codegen/oapi-codegen v2. Mitigating CVE-2025-30153
10 lines
343 B
Go
10 lines
343 B
Go
package openapi3
|
|
|
|
//go:generate go run refsgenerator.go
|
|
|
|
// Ref is specified by OpenAPI/Swagger 3.0 standard.
|
|
// See https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#reference-object
|
|
type Ref struct {
|
|
Ref string `json:"$ref" yaml:"$ref"`
|
|
Origin *Origin `json:"__origin__,omitempty" yaml:"__origin__,omitempty"`
|
|
}
|