ErenAta16
ErenAta16
### Submission checklist - [x] This is a bug, not a usage question. - [x] I added a clear and descriptive title that summarizes this issue. - [x] I used...
Closes #1938. ## What `json_schema_dict_to_dataclass` left a non-required field's annotation as the bare type and only added a `None` default. So a field that isn't in the schema's `required` list...
## Problem `Dict[K, V]` where `K` is not `str` (e.g. `int`, `float`, `bool`, `date`, `time`, `datetime`) produces a regex that accepts **unquoted** keys, which is not valid JSON: ```python from...
### What Inside a container type built by the DSL (`list[bool]`, `dict[str, bool]`, `tuple[bool, ...]`), booleans render Python-style as `True`/`False`, while everything else in the same container is JSON-shaped: strings...
Closes #1940. ## What `_handle_list` and `_handle_tuple` (in `src/outlines/types/dsl.py`) built `[item(, item)*]`, placing the item term before the `KleeneStar`, so at least one element was mandatory. The valid empty collection...
### What The DSL regex for `List[T]` (and the variadic `Tuple[T, ...]`) requires at least one element, so a valid empty collection can never be generated. `_handle_list` / `_handle_tuple` build...
### What `json_schema_dict_to_dataclass` (in `src/outlines/types/json_schema_utils.py`) drops the optionality of non-required fields. For a field that isn't in the schema's `required` list, it sets a `None` default but leaves the annotation...
### What `json_schema_dict_to_pydantic` makes every non-required field **nullable**, so the model it returns accepts `null` for fields the source schema does not allow to be `null`. For constrained generation this...
### Describe the bug `server_url_validator` is the default SSRF guard for OpenAPI plugin calls (`allow_private_network_access` defaults to `False`), and it classifies IPv4 by explicit octet ranges and IPv6 by a...