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

Function loadInline

pkg/schema/loader.go:122–128  ·  view source on GitHub ↗

End loadFromFile loadInline is a function that handles inline schema types.

(schema string)

Source from the content-addressed store, hash-verified

120} // End loadFromFile
121// loadInline is a function that handles inline schema types.
122func loadInline(schema string) (string, error) { // Load inline schema
123 // Add validation if necessary. For example:
124 if schema == "" {
125 return "", errors.New("schema is empty")
126 }
127 return schema, nil // Return inline schema
128} // End loadInline

Callers 1

loader_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected