@@ -24144,6 +24144,32 @@ datamodel-code-generator detects the OpenAPI version from the `openapi` field:
2414424144- `openapi: "3.1.x"` -> OpenAPI 3.1
2414524145- No `openapi` field -> Fallback to OpenAPI 3.1
2414624146
24147+ <!-- BEGIN AUTO-GENERATED SUPPORTED FEATURES -->
24148+ ### Supported Features (from code)
24149+
24150+ The following features are tracked in the codebase with their implementation status:
24151+
24152+ #### JSON Schema Features
24153+
24154+ | Feature | Introduced | Status | Description |
24155+ |---------|------------|--------|-------------|
24156+ | `Null in type array` | 2020-12 | ✅ Supported | Allows `type: ['string', 'null']` syntax for nullable types |
24157+ | `$defs` | 2019-09 | ✅ Supported | Uses `$defs` instead of `definitions` for schema definitions |
24158+ | `prefixItems` | 2020-12 | ✅ Supported | Tuple validation using `prefixItems` keyword |
24159+ | `Boolean schemas` | Draft 6 | ✅ Supported | Allows `true` and `false` as valid schemas |
24160+ | `$id` | Draft 6 | ✅ Supported | Schema identifier field (`id` in Draft 4, `$id` in Draft 6+) |
24161+ | `definitions/$defs` | Draft 4 | ✅ Supported | Key for reusable schema definitions |
24162+ | `exclusiveMinimum/Maximum as number` | Draft 6 | ✅ Supported | Numeric `exclusiveMinimum`/`exclusiveMaximum` (boolean in Draft 4) |
24163+ | `readOnly/writeOnly` | Draft 7 | ✅ Supported | Field visibility hints for read-only and write-only properties |
24164+
24165+ #### OpenAPI-Specific Features
24166+
24167+ | Feature | Introduced | Status | Description |
24168+ |---------|------------|--------|-------------|
24169+ | `nullable` | OAS 3.0 | ✅ Supported | Uses `nullable: true` for nullable types (deprecated in 3.1) |
24170+ | `discriminator` | OAS 3.0 | ✅ Supported | Polymorphism support via `discriminator` keyword |
24171+ <!-- END AUTO-GENERATED SUPPORTED FEATURES -->
24172+
2414724173## Data Format Support
2414824174
2414924175### Common Formats (JSON Schema + OpenAPI)
0 commit comments