@opscogs/octools
    Preparing search index...

    Function outputSchemaFor

    • Return schema's JSON Schema shaped for OCTool.output_schema.

      The wire shape a parse accepts, which is what the tool returns once its result is parsed, and no titles. Output schemas are unconstrained 2020-12: nothing sends them to a grammar compiler, so extension keys and bounds are fine here. A z.object stays open and a z.strictObject is closed, as in the schema given.

      Parameters

      • schema: ZodType

      Returns JsonSchema