()
| 211 | } |
| 212 | |
| 213 | func (pd ParameterDefinition) GoName() string { |
| 214 | goName := pd.ParamName |
| 215 | if extension, ok := pd.Spec.Extensions[extGoName]; ok { |
| 216 | if extGoFieldName, err := extParseGoFieldName(extension); err == nil { |
| 217 | goName = extGoFieldName |
| 218 | } |
| 219 | } |
| 220 | return SchemaNameToTypeName(goName) |
| 221 | } |
| 222 | |
| 223 | // Deprecated: Use HasOptionalPointer, as it is clearer what the intent is. |
| 224 | func (pd ParameterDefinition) IndirectOptional() bool { |
no test coverage detected