code: func (r *ResourceDefinition) PathParams() *AttributeDefinition {
  	names := ExtractWildcards(r.BasePath)
  	obj := make(Object)
  	if r.Params != nil {
  		for _, n := range names {
  			if p, ok := r.Params.Type.ToObject()[n]; ok {
  				obj[n] = p
  			}
  		}
  	}
  	return &AttributeDefinition{Type: obj}
  }
docs: // PathParams returns the base path parameters of r.