Skip to content

Request/inputs and response/outputs formats #3

@tlrobinson

Description

@tlrobinson

I'm not completely satisfied with the current spec. Here are the main decision points:

  1. Should the request and response record(s) be wrapped in an object with inputs/outputs property? (currently yes)
    • Originally proposed to avoid the JSON array vulnerability, but I'm not sure if this is even an issue since we don't use cookies for authentication.
  2. Should we always return an array of output records, even for a single output record? (currently yes)
    • So clients don't need to check for multiple types. However, it may be useful in the pipeline editor to know whether a block will output a single or multiple records. That would be specified in the block definition, and thus would be known by the client.
  3. Should the input record (always singular?) be wrapped in an array? (currently yes?)
    • Presumably for consistency with outputs, but I really don't like this. Does it ever make sense to have an array of input records?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions