Skip to content

Conversation

@mbleigh
Copy link
Collaborator

@mbleigh mbleigh commented Jul 3, 2024

Before

Error: FAILED_PRECONDITION: Generation resulted in not a single candidate matching provided output schema.

After

Error: FAILED_PRECONDITION: Generation resulted in not a single candidate matching provided output schema.

Candidate[0] Error: INVALID_ARGUMENT: Schema validation failed. Parse Errors:

- (root): must have required property 'name'

Provided data:

{
  "displayName": "Some Name"
}

Required JSON schema:

{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": true,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

@mbleigh mbleigh requested review from MichaelDoyle and pavelgj July 3, 2024 21:44
@mbleigh mbleigh merged commit 610e3ed into main Jul 8, 2024
@mbleigh mbleigh deleted the better-errors branch July 8, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants