Skip to content

Type Alias: OutputFromInput ​

ts
type OutputFromInput = 
  | {
  input: string;
  kind: "schema";
  output: string;
}
  | {
  input: string;
  key: string;
  kind: "keys";
  output: string;
};

An output field whose shape a call's input gives: schema, the output at output is what the JSON Schema the input holds at input describes; keys, the output at output has a member for each item of the input's array at input, named by the item's key field, shaped as the output schema's additionalProperties there. Both as JSON Pointers.

Released under the Apache-2.0 License.