Skip to content

Update the vendored TypeSafe OpenAPI specification - #7

Open
typesafe-sdk-spec-sync[bot] wants to merge 1 commit into
mainfrom
api-spec-update
Open

typesafe-sdk-spec-sync[bot] wants to merge 1 commit into
mainfrom
api-spec-update

Conversation

@typesafe-sdk-spec-sync

@typesafe-sdk-spec-sync typesafe-sdk-spec-sync Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

TypeSafe API specification changed

Vendored version: 0.2.0, published version: 0.2.0 (https://api.typesafe.ai/openapi.json).

Added

  • property Asset.data_base64: {"type":"string"}
  • property Asset.format: {"enum":["png","jpg","jpeg"],"type":"string"}
  • property Asset.part: {"type":"string"}
  • property Asset.type: {"const":"image","type":"string"}
  • property BoxAnswer.box: {"$ref":"#/components/schemas/BoxCoordinates"}
  • property BoxAnswer.confidence: {"anyOf":[{"type":"number"},{"type":"null"}]}
  • property BoxAnswer.type: {"const":"box","type":"string"}
  • property BoxCoordinates.bottom: {"type":"number"}
  • property BoxCoordinates.left: {"type":"number"}
  • property BoxCoordinates.right: {"type":"number"}
  • property BoxCoordinates.top: {"type":"number"}
  • property BoxQuestion.instructions: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"x-accepts":"string | object | array"}
  • property BoxQuestion.type: {"const":"box","type":"string"}
  • property ChoiceQuestion.criteria: {"additionalProperties":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"x-accepts":"string | object | array"},"maxProperties":255,"minProperties":1,"type":"object"}
  • property ChoiceQuestion.instructions: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"x-accepts":"string | object | array"}
  • property NoulCriteria.false: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"x-accepts":"string | object | array"}
  • property NoulCriteria.true: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"x-accepts":"string | object | array"}
  • property NoulQuestion.instructions: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"x-accepts":"string | object | array"}
  • property ScoreAnswer.legend: {"additionalProperties":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"x-accepts":"string | object | array"},"type":"object"}
  • property ScoreQuestion.criteria: {"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"x-accepts":"string | object | array"},"maxItems":10,"minItems":1,"type":"array"}
  • property ScoreQuestion.instructions: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}],"x-accepts":"string | object | array"}
  • property SystemOneRequest.assets: {"additionalProperties":{"$ref":"#/components/schemas/Asset"},"minProperties":1,"type":"object"}
  • property SystemOneRequest.state: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}],"x-accepts":"string | object | array"}
  • required BoxAnswer.box
  • required BoxAnswer.confidence
  • required BoxAnswer.type
  • required BoxCoordinates.bottom
  • required BoxCoordinates.left
  • required BoxCoordinates.right
  • required BoxCoordinates.top
  • required BoxQuestion.type
  • schema Asset
  • schema BoxAnswer
  • schema BoxCoordinates
  • schema BoxQuestion
  • variant Answer.box
  • variant Question.box

Removed

  • property ChoiceQuestion.criteria: {"additionalProperties":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]},"type":"object"}
  • property ChoiceQuestion.instructions: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]}
  • property NoulCriteria.false: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]}
  • property NoulCriteria.true: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]}
  • property NoulQuestion.instructions: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]}
  • property ScoreAnswer.legend: {"additionalProperties":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}]},"type":"object"}
  • property ScoreQuestion.criteria: {"items":{"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}]},"minItems":1,"type":"array"}
  • property ScoreQuestion.instructions: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"},{"type":"null"}]}
  • property SystemOneRequest.state: {"anyOf":[{"type":"string"},{"additionalProperties":true,"type":"object"},{"items":{},"type":"array"}]}

Conformance tests

These tests fail against the new specification. Each one names something the bindings do not cover yet:

    every schema is bound:                                                     FAIL
      expected: ["Answer","Asset","BoxAnswer","BoxCoordinates","BoxQuestion","ChoiceAnswer","ChoiceQuestion","HTTPValidationError","ModelMetadata","ModelMetadataList","NoulAnswer","NoulCriteria","NoulQuestion","Question","ScoreAnswer","ScoreQuestion","SystemOneRequest","SystemOneResponse","Usage","ValidationError"]
       but got: ["Answer","ChoiceAnswer","ChoiceQuestion","HTTPValidationError","ModelMetadata","ModelMetadataList","NoulAnswer","NoulCriteria","NoulQuestion","Question","ScoreAnswer","ScoreQuestion","SystemOneRequest","SystemOneResponse","Usage","ValidationError"]
    the schema validator understands every keyword in use:                     FAIL
      expected: []
       but got: ["enum","x-accepts","maxProperties","maxItems"]
    question constructors match the Question discriminator:                    FAIL
      expected: ["box","choice","noul","score"]
       but got: ["choice","noul","score"]
    answer constructors match the Answer discriminator:                        FAIL
      expected: ["box","choice","noul","score"]
       but got: ["choice","noul","score"]
        encoded values validate against the schema:                            FAIL
        encoded values validate against the schema:                            FAIL
        the specification's examples validate and decode:                      FAIL
          expected: []
           but got: ["$.criteria.angry: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it","$.criteria.calm: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it","$.criteria.excited: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it","$.criteria: unsupported JSON Schema keyword \"maxProperties\"; teach TypeSafe.JsonSchema about it","$.instructions: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it"]
        encoded values validate against the schema:                            FAIL
        the specification's examples validate and decode:                      FAIL
          expected: []
           but got: ["$.false: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it","$.true: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it"]
        encoded values validate against the schema:                            FAIL
        the specification's examples validate and decode:                      FAIL
          expected: []
           but got: ["$.criteria: matches none of the anyOf alternatives","$.instructions: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it"]
        encoded values validate against the schema:                            FAIL
        encoded values validate against the schema:                            FAIL
        the specification's examples validate and decode:                      FAIL
          expected: []
           but got: ["$.legend.0: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it","$.legend.1: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it","$.legend.2: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it"]
        encoded values validate against the schema:                            FAIL
        the specification's examples validate and decode:                      FAIL
          expected: []
           but got: ["$.criteria[0]: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it","$.criteria[1]: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it","$.criteria[2]: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it","$.criteria: unsupported JSON Schema keyword \"maxItems\"; teach TypeSafe.JsonSchema about it","$.instructions: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it"]
        encoded values validate against the schema:                            FAIL
        encodes exactly the declared properties:                               FAIL (0.07s)
          expected: fromList ["assets","model","questions","state"]
           but got: fromList ["model","questions","state"]
        the specification's examples validate and decode:                      FAIL
          expected: []
           but got: ["$.questions.billing: matches 0 oneOf alternatives, expected exactly 1","$.state: unsupported JSON Schema keyword \"x-accepts\"; teach TypeSafe.JsonSchema about it"]
        encoded values validate against the schema:                            FAIL
20 out of 151 tests failed (1.77s)
Test suite spec: FAIL
Tests failed for test:spec from typesafe-ai-core-0.1.0.0.

See MAINTAINING.md for how to update the bindings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants