code: func JSONResourceObject(name string, attributes *d.UserTypeDefinition, relationships *d.UserTypeDefinition) *d.UserTypeDefinition {
  	return a.Type(name, func() {
  		a.Attribute("type", d.String, func() {
  			a.Enum(strings.ToLower(name) + "s")
  		})
  		a.Attribute("id", d.String, "ID of the "+name, func() {
  			a.Example("42")
  		})
  		a.Attribute("attributes", attributes)
  		if relationships != nil {
  			a.Attribute("relationships", relationships)
  		}
  		a.Required("type", "id", "attributes")
  	})
  }
docs: // JSONResourceObject creates a single resource object