isSchemaReference takes a $ref value and checks if it references a schema element.
(ref string, compType string)
| 256 | |
| 257 | // isSchemaReference takes a $ref value and checks if it references a schema element. |
| 258 | func isRootComponentReference(ref string, compType string) bool { |
| 259 | return isElementReference(ref) && strings.Contains(ref, path.Join("#/components/", compType)) |
| 260 | } |
| 261 | |
| 262 | // isWholeDocumentReference takes a $ref value and checks if it is whole document reference. |
| 263 | func isWholeDocumentReference(ref string) bool { |
no test coverage detected
searching dependent graphs…