tyfon icon indicating copy to clipboard operation
tyfon copied to clipboard

Allow named arguments

Open loreanvictor opened this issue 3 years ago • 0 comments

Right now, arguments are encoded based on their position in the query parameters / request body. While this works well with requests originating from TyFON clients, it results in reduced readability for requests originating from other sources.

To alleviate this, we could parse the emitted type definitions using tools such as tree-sitter, and include the potential name of arguments for each method in emitted API JSONs. The request parser then can also look for these names instead of just looking for numeric keys in query parameters / request body.

loreanvictor avatar Feb 26 '21 17:02 loreanvictor