(jsonPath string)
| 370 | } |
| 371 | |
| 372 | func knownFieldHintForPath(jsonPath string) (string, []string, string, bool) { |
| 373 | if hint, ok := knownFieldValidValues[jsonPath]; ok { |
| 374 | return hint, knownFieldScopes[jsonPath], knownFieldDocs[jsonPath], true |
| 375 | } |
| 376 | bestPath := findBestKnownFieldParentPath(jsonPath) |
| 377 | if bestPath == "" { |
| 378 | return "", nil, "", false |
| 379 | } |
| 380 | return knownFieldValidValues[bestPath], knownFieldScopes[bestPath], knownFieldDocs[bestPath], true |
| 381 | } |
| 382 | |
| 383 | func findBestKnownFieldParentPath(jsonPath string) string { |
| 384 | bestPath := "" |
no test coverage detected