Skip to content

fix(visualize): accept trailing prose after Chart.js JSON - #686

Open
santhreal wants to merge 6 commits into
HKUDS:devfrom
santhreal:fix/validate-chartjs-raw-decode
Open

fix(visualize): accept trailing prose after Chart.js JSON#686
santhreal wants to merge 6 commits into
HKUDS:devfrom
santhreal:fix/validate-chartjs-raw-decode

Conversation

@santhreal

Copy link
Copy Markdown
Contributor

validate_visualization used json.loads on Chart.js payloads, so a valid object followed by trailing prose failed local checks.

Decode with JSONDecoder.raw_decode so the first object is accepted.

Local chartjs validation used json.loads on the whole payload, so a valid
config followed by model prose failed and forced an unnecessary repair pass.
…-raw-decode

# Conflicts:
#	deeptutor/skills/builtin/pdf/SKILL.md
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.

1 participant