Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure regex matches valid JSON for "const" and "enum" with booleans, nulls, and strings #972

Merged
merged 1 commit into from
Jun 18, 2024

Commits on Jun 17, 2024

  1. Ensure regex matches valid JSON for "const" and "enum" with booleans,…

    … nulls, and strings
    
    Use JSON's serialization, rather than Python's, in this case.
    
    Fixes outlines-dev#971. Note that this still does not correctly handle arrays
    and objects, which are allowed by the JSON schema spec; however,
    those would be more complex to handle correctly.
    mwootten authored and rlouf committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    b1f7093 View commit details
    Browse the repository at this point in the history