MCPcopy Index your code
hub / github.com/Permify/permify / ReadSchema

Method ReadSchema

pkg/development/development.go:97–106  ·  view source on GitHub ↗

ReadSchema - Creates new read schema request

(ctx context.Context)

Source from the content-addressed store, hash-verified

95
96// ReadSchema - Creates new read schema request
97func (c *Development) ReadSchema(ctx context.Context) (sch *v1.SchemaDefinition, err error) {
98 // Get the head version of the "t1" schema from the schema repository
99 version, err := c.Container.SR.HeadVersion(ctx, "t1")
100 if err != nil {
101 return nil, err
102 }
103
104 // Read the schema definition for the given schema and version from the schema repository
105 return c.Container.SR.ReadSchema(ctx, "t1", version)
106}
107
108type Error struct {
109 Type string `json:"type"`

Callers

nothing calls this directly

Calls 2

HeadVersionMethod · 0.65
ReadSchemaMethod · 0.65

Tested by

no test coverage detected