refName is the last part of a schema's $ref, such as simple-user.
(ref *openapi3.SchemaRef)
| 506 | |
| 507 | // refName is the last part of a schema's $ref, such as simple-user. |
| 508 | func refName(ref *openapi3.SchemaRef) string { |
| 509 | if i := strings.LastIndex(ref.Ref, "/"); i >= 0 { |
| 510 | return ref.Ref[i+1:] |
| 511 | } |
| 512 | return ref.Ref |
| 513 | } |
| 514 | |
| 515 | // writeProperties lists an object's properties, or those of each item in a |
| 516 | // list of objects, with the ones a response must include first. |
no outgoing calls
no test coverage detected