6ad74b0500
This commit adds a new top-level key to the JSON schema for Ruby 3x/4x puppet functions: `signatures`. This key is an array and is constructed entirely with data from existing elements of the puppet function object. The data structure itself remains unchanged, as this commit only affects the final JSON output for functions. In the case of a puppet 4x function with multiple dispatches (overloads), the signatures key is populated with the equivalent of an overload tag for each which includes the signature and any param or return tags for the dispatch. In the case of a puppet function with only one dispatch, the array is simply populated with a single element containing a lone dispatch and its param and return tags. Note that this change does not affect the internal structure or representation of puppet function objects, but rather only affects its final display form when serialized into JSON. All prior data has been left intact, and the only change here is the addition of the `signatures` member to the JSON output. |
||
---|---|---|
.. | ||
puppet | ||
puppet-strings | ||
puppet-strings.rb |