MCPcopy Create free account
hub / github.com/a-h/rest / StructWithCustomisation

Struct StructWithCustomisation

schema_test.go:159–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159type StructWithCustomisation struct {
160 A string `json:"a"`
161 B FieldWithCustomisation `json:"b"`
162 C *FieldWithCustomisation `json:"c"`
163}
164
165func (*StructWithCustomisation) ApplyCustomSchema(s *openapi3.Schema) {
166 s.Properties["a"].Value.Description = "A string"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected