Steps to reproduce
Generate and see
Expected results
test should be nullable
Actual results
test is not nullable
Your OpenApi snippet
{
"openapi": "3.0.1",
"info": {
"title": "Backend For Mobile API v0.17.49.7",
"description": "This api will provide data and functionalities about the mobile.",
"version": "v1"
},
"paths": {
"/api/nullable-issue": {
"get": {
"tags": [
"Bugs"
],
"parameters": [
],
"responses": {
"200": {
"description": "OK",
"content": {
"text/plain": {
"schema": {
"$ref": "#/components/schemas/DummyResponse"
}
},
"application/json": {
"schema": {
"$ref": "#/components/schemas/DummyResponse"
}
},
"text/json": {
"schema": {
"$ref": "#/components/schemas/DummyResponse"
}
}
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
}
},
"security": [
{
"oauth2": []
}
]
}
}
},
"components": {
"schemas": {
"DummyResponse": {
"type": "object",
"properties": {
"test": {
"allOf": [
{
"$ref": "#/components/schemas/Test"
}
],
"nullable": true
}
},
"additionalProperties": false
},
"Test": {
"type": "object",
"properties": {
"testid": {
"type": "string",
"nullable": true
}
},
"additionalProperties": false
}
},
"securitySchemes": {
"Bearer Access Token": {
"type": "http",
"description": "Put your access token from the login endpoint.",
"scheme": "Bearer",
"bearerFormat": "JWT"
}
}
}
}
Code sample
Logs
No response
Dart version and used packages versions
all latest
Steps to reproduce
Generate and see
Expected results
test should be nullable
Actual results
test is not nullable
Your OpenApi snippet
{ "openapi": "3.0.1", "info": { "title": "Backend For Mobile API v0.17.49.7", "description": "This api will provide data and functionalities about the mobile.", "version": "v1" }, "paths": { "/api/nullable-issue": { "get": { "tags": [ "Bugs" ], "parameters": [ ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/DummyResponse" } }, "application/json": { "schema": { "$ref": "#/components/schemas/DummyResponse" } }, "text/json": { "schema": { "$ref": "#/components/schemas/DummyResponse" } } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } }, "security": [ { "oauth2": [] } ] } } }, "components": { "schemas": { "DummyResponse": { "type": "object", "properties": { "test": { "allOf": [ { "$ref": "#/components/schemas/Test" } ], "nullable": true } }, "additionalProperties": false }, "Test": { "type": "object", "properties": { "testid": { "type": "string", "nullable": true } }, "additionalProperties": false } }, "securitySchemes": { "Bearer Access Token": { "type": "http", "description": "Put your access token from the login endpoint.", "scheme": "Bearer", "bearerFormat": "JWT" } } } }Code sample
Logs
No response
Dart version and used packages versions
all latest