palantir / palantir/conjure-python

Surface which field is failing in schema validation

Open
#334 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
27
Forks
19
Avg merge
12h 22m
Merged PRs (30d)
15

Description

When building the conjure object itself, ex:

item = ItemConjureInstance(
       id=id,
       val=val
)

validation works fine and doesn't throw an error,

but in the API definition when validating the output, I'd get an error like:
{"message": "Output type check failed with exception: Expected to find <class 'str'> type but found <class 'int'> instead"}

It doesn't tell me which exact field failed - slowing down debug cycles.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing output type validation in the API definition path and reproduce the reported mismatch between a string field and an integer value. Done means the validation error identifies the exact field that failed, while preserving the existing type-check behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.