Spec Json File:
{
"info": {
"contact": {},
"description": ".",
"version": "1.0.0",
"title": "Building Blocks"
},
"paths": {
"/resource-group/v2.0.0": {
"post": {
"description": "resource-group_create",
"tags": [
"resource-group"
],
"x-codegen-request-body-name": "extra_vars",
"deprecated": false,
"summary": "This Building Block allows the user to Update: resource-group",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/resource-group_create_v2.0.0"
}
}
}
},
"responses": {
"200": {
"content": {},
"description": "OK"
}
}
}
},
"/resource-group/v2.0.1": {
"post": {
"description": "resource-group_create",
"tags": [
"resource-group"
],
"x-codegen-request-body-name": "extra_vars",
"deprecated": false,
"summary": "This Building Block allows the user to Update: resource-group",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/resource-group_create_v2.0.1"
}
}
}
},
"responses": {
"200": {
"content": {},
"description": "OK"
}
}
}
}
},
"tags": [],
"openapi": "3.0.3",
"components": {
"schemas": {
"resource-group_create_v2.0.1": {
"xml": {
"wrapped": false,
"attribute": false,
"name": "resource-group"
},
"type": "object",
"properties": {
"credentials": {
"type": "Array"
},
"extra_vars": {
"required": [
"var_subscriptionId",
"var_productApp"
],
"type": "object",
"properties": {
"var_subscriptionId": {
"mandatory": true,
"type": "string",
"description": null
},
"var_productApp": {
"mandatory": true,
"type": "string",
"description": null
}
}
}
},
"title": "resource-group_create_v2.0.1"
},
"resource-group_create_v2.0.0": {
"xml": {
"wrapped": false,
"attribute": false,
"name": "resource-group"
},
"type": "object",
"properties": {
"credentials": {
"type": "Array"
},
"extra_vars": {
"required": [
"var_subscriptionId",
"var_productApp"
],
"type": "object",
"properties": {
"var_subscriptionId": {
"type": "string",
"mandatory": true,
"description": null
},
"var_productApp": {
"type": "string",
"mandatory": true,
"description": null
}
}
}
},
"title": "resource-group_create_v2.0.0"
}
}
},
"servers": [
{
"url": ""
}
]
}
Command:
docker run openapitools/openapi-generator-cli:v6.0.0 generate -i /local/spec.json -c /local/config.json -g csharp-netcore -o /local/bb-sdk --skip-validate-spec
Model result:

ResourceGroupCreateV200ExtraVars.cs -> Is not Created!
Because the "properties"
are the same in both schemas
Is there a way to Force that?
Spec Json File:
{
"info": {
"contact": {},
"description": ".",
"version": "1.0.0",
"title": "Building Blocks"
},
"paths": {
"/resource-group/v2.0.0": {
"post": {
"description": "resource-group_create",
"tags": [
"resource-group"
],
"x-codegen-request-body-name": "extra_vars",
"deprecated": false,
"summary": "This Building Block allows the user to Update: resource-group",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/resource-group_create_v2.0.0"
}
}
}
},
"responses": {
"200": {
"content": {},
"description": "OK"
}
}
}
}
Command:
docker run openapitools/openapi-generator-cli:v6.0.0 generate -i /local/spec.json -c /local/config.json -g csharp-netcore -o /local/bb-sdk --skip-validate-spec
Model result:
ResourceGroupCreateV200ExtraVars.cs -> Is not Created!
Because the "properties"
are the same in both schemas
Is there a way to Force that?