ReadSchema - Creates new read schema request
(ctx context.Context)
| 95 | |
| 96 | // ReadSchema - Creates new read schema request |
| 97 | func (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 | |
| 108 | type Error struct { |
| 109 | Type string `json:"type"` |
nothing calls this directly
no test coverage detected