HomePhorge

(PUP-1960) Change API of Resource and Class types for undef/array
cadb5d822192Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-1960) Change API of Resource and Class types for undef/array

This changes the API of Resource and Class types so that they:

  • return a single type or undef when there is a single key
  • return an array of types or empty array when there are multiple keys, or when a single key is an array.

The arguments are still flattened and compacted.

For Resource, the ability to also pass the type in the array was
removed. i.e. Resource[File, f1, f2] or Resource[File, [f1, f2]] are
allowed but not Resource[[File, f1, f2]].

Event Timeline

Henrik Lindberg <henrik.lindberg@cloudsmith.com> committed rPUcadb5d822192: (PUP-1960) Change API of Resource and Class types for undef/array (authored by Henrik Lindberg <henrik.lindberg@cloudsmith.com>).Apr 7 2014, 11:36 PM