Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Problem
When using the
@google-cloud/vertexai
NodeJS library (version 1.9.3) with a JSON schema that defines strings containing quotes ("
), the JSON responses are malformed due to unescaped quotes. This issue occurs regardless of whether the quotes are in object property names or string values.However, this does not hold true in this case — malformed JSON is generated.
Malformed output
Expected output
Example Code to Generate that Malformed Output
Output with annotations, highlighting the spots where quotes are missing:
Additional Note
In the code above, when commenting out the lines in
properties
in the schema, a500 Internal Server Error
occurs:I would expect a 4xx error in this case.