TODO FUTURE: rename to getParsedRefForString
( ctx context.Context, value string, allowedFormats []string, )
| 503 | |
| 504 | // TODO FUTURE: rename to getParsedRefForString |
| 505 | func (a *refParser) getParsedRef( |
| 506 | ctx context.Context, |
| 507 | value string, |
| 508 | allowedFormats []string, |
| 509 | ) (internal.ParsedRef, error) { |
| 510 | parsedRef, err := a.fetchRefParser.GetParsedRef( |
| 511 | ctx, |
| 512 | value, |
| 513 | internal.WithAllowedFormats(allowedFormats...), |
| 514 | ) |
| 515 | if err != nil { |
| 516 | return nil, err |
| 517 | } |
| 518 | a.checkDeprecated(parsedRef) |
| 519 | return parsedRef, nil |
| 520 | } |
| 521 | |
| 522 | func (a *refParser) getParsedRefForInputConfig( |
| 523 | ctx context.Context, |