• Eric Putnam's avatar
    (PDOC-240) add handling for :array node type in rsapi_handler · 9a1a0b4a
    Eric Putnam authored
    The 'features' key in the resource api expects an array of feature names. Currently, if you run strings on a resource api type that specifies features, it falls over because it doesn't know what to do with an AST node of type :array. Further, the method that throws the error is looking for an undefined variable called 'parameters'. This removes the odd conditional that calls 'parameters' and adds a method that returns an array of the array contents that may be passed to features. Features are not currently sent to the renderer, but now Strings will be able to handle any array it comes across in an rsapi type.
    9a1a0b4a
rsapi_handler_spec.rb 7.88 KB