func (s *workItemTypeSuite) createWorkItemTypePerson() (http.ResponseWriter, *app.WorkItemTypeSingle) {
	// Create the type for the "color" field
	nameFieldDef := app.FieldDefinition{
		Required: true,
		Type: &app.FieldType{
			Kind: "string",
		},
	}

	// Use the goa generated code to create a work item type
	desc := "Description for 'person'"
	id := personID
	reqLong := &goa.RequestData{
		Request: &http.Request{Host: "api.service.domain.org"},
	}
	spaceSelfURL := rest.AbsoluteURL(reqLong, app.SpaceHref(space.SystemSpace.String()))
	payload := app.CreateWorkitemtypePayload{
		Data: &app.WorkItemTypeData{
			ID:   &id,
			Type: "workitemtypes",
			Attributes: &app.WorkItemTypeAttributes{
				Name:        "person",
				Description: &desc,
				Icon:        "fa-user",
				Fields: map[string]*app.FieldDefinition{
					"name": &nameFieldDef,
				},
			},
			Relationships: &app.WorkItemTypeRelationships{
				Space: app.NewSpaceRelation(space.SystemSpace, spaceSelfURL),
			},
		},
	}

	responseWriter, wi := test.CreateWorkitemtypeCreated(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), &payload)
	require.NotNil(s.T(), wi)
	require.NotNil(s.T(), wi.Data)
	require.NotNil(s.T(), wi.Data.ID)
	require.True(s.T(), uuid.Equal(personID, *wi.Data.ID))
	return responseWriter, wi
}
// createWorkItemTypePerson defines a work item type "person" that consists of
// a required "name" field.
createWorkItemTypePerson defines a work item type "person" that consists of
a required "name" field.
// createWorkItemTypePerson defines a work item type " person " that consists of // a required " name " field .
func (s *workItemTypeSuite) createWorkItemTypePerson() (http.ResponseWriter, *app.WorkItemTypeSingle) {
	nameFieldDef := app.FieldDefinition{
		Required: true,
		Type: &app.FieldType{
			Kind: "string",
		},
	}
	desc := "Description for 'person'"
	id := personID
	reqLong := &goa.RequestData{
		Request: &http.Request{Host: "api.service.domain.org"},
	}
	spaceSelfURL := rest.AbsoluteURL(reqLong, app.SpaceHref(space.SystemSpace.String()))
	payload := app.CreateWorkitemtypePayload{
		Data: &app.WorkItemTypeData{
			ID:   &id,
			Type: "workitemtypes",
			Attributes: &app.WorkItemTypeAttributes{
				Name:        "person",
				Description: &desc,
				Icon:        "fa-user",
				Fields: map[string]*app.FieldDefinition{
					"name": &nameFieldDef,
				},
			},
			Relationships: &app.WorkItemTypeRelationships{
				Space: app.NewSpaceRelation(space.SystemSpace, spaceSelfURL),
			},
		},
	}
	responseWriter, wi := test.CreateWorkitemtypeCreated(s.T(), nil, nil, s.typeCtrl, space.SystemSpace.String(), &payload)
	require.NotNil(s.T(), wi)
	require.NotNil(s.T(), wi.Data)
	require.NotNil(s.T(), wi.Data.ID)
	require.True(s.T(), uuid.Equal(personID, *wi.Data.ID))
	return responseWriter, wi
}
func ( s * workItemTypeSuite ) createWorkItemTypePerson ( ) ( http . ResponseWriter , * app . WorkItemTypeSingle ) { nameFieldDef := app . FieldDefinition { Required : true , Type : & app . FieldType { Kind : " " , } , } desc := " " id := personID reqLong := & goa . RequestData { Request : & http . Request { Host : " " } , } spaceSelfURL := rest . AbsoluteURL ( reqLong , app . SpaceHref ( space . SystemSpace . String ( ) ) ) payload := app . CreateWorkitemtypePayload { Data : & app . WorkItemTypeData { ID : & id , Type : " " , Attributes : & app . WorkItemTypeAttributes { Name : " " , Description : & desc , Icon : " " , Fields : map [ string ] * app . FieldDefinition { " " : & nameFieldDef , } , } , Relationships : & app . WorkItemTypeRelationships { Space : app . NewSpaceRelation ( space . SystemSpace , spaceSelfURL ) , } , } , } responseWriter , wi := test . CreateWorkitemtypeCreated ( s . T ( ) , nil , nil , s . typeCtrl , space . SystemSpace . String ( ) , & payload ) require . NotNil ( s . T ( ) , wi ) require . NotNil ( s . T ( ) , wi . Data ) require . NotNil ( s . T ( ) , wi . Data . ID ) require . True ( s . T ( ) , uuid . Equal ( personID , * wi . Data . ID ) ) return responseWriter , wi }
createWorkItemTypePerson defines a work item type "person" that consists of
a required "name" field.
createWorkItemTypePerson defines a work item type " person " that consists of a required " name " field .
// Create the type for the "color" field // Use the goa generated code to create a work item type