MCPcopy Create free account
hub / github.com/Permify/permify / isURL

Function isURL

pkg/schema/loader.go:63–70  ·  view source on GitHub ↗

End determineSchemaType

(input string)

Source from the content-addressed store, hash-verified

61 return Inline, nil // Default to inline
62} // End determineSchemaType
63func isURL(input string) bool { // Check if input is URL
64 parsedURL, err := url.Parse(input)
65 if err != nil {
66 return false
67 }
68 // Check if the URL has a valid scheme and host
69 return parsedURL.Scheme != "" && parsedURL.Host != ""
70} // End isURL
71func isFilePath(input string) (bool, error) { // Check if input is file
72 _, err := os.Stat(input) // Get file info
73 if err != nil {

Callers 2

loader_test.goFile · 0.85
determineSchemaTypeFunction · 0.85

Calls 1

ParseMethod · 0.80

Tested by

no test coverage detected