1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 21:32:10 +00:00

Cleanup references

This commit is contained in:
Darren Shepherd
2018-02-13 16:46:50 -07:00
parent 9e096de9f5
commit cbabeef819
9 changed files with 13 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ func (c *Creator) ToInternal(data map[string]interface{}) {
func (c *Creator) ModifySchema(schema *types.Schema, schemas *types.Schemas) error {
if schema.CanList(nil) && schema.CanCreate(nil) {
schema.ResourceFields["creatorId"] = types.Field{
Type: "reference[user]",
Type: "reference[/v3/schemas/user]",
CodeName: "CreatorID",
}
c.m = &mapper.AnnotationField{Field: "creatorId"}