Skip to content

Instantly share code, notes, and snippets.

@shaun-jacks
Created March 13, 2025 19:30
Show Gist options
  • Save shaun-jacks/7867ddaa45841edfc37ce4079c7693a4 to your computer and use it in GitHub Desktop.
Save shaun-jacks/7867ddaa45841edfc37ce4079c7693a4 to your computer and use it in GitHub Desktop.
openapi-generator-bug-additionalproperties-array-items-enum
{
"openapi": "3.0.0",
"info": {
"title": "Test title",
"version": "version",
"description": "Test description"
},
"paths": {
"/test": {
"get": {
"operationId": "getTest",
"description": "Get a test",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TestResponse"
}
}
},
"description": ""
}
},
"tags": [
"Test"
],
"parameters": []
}
}
},
"components": {
"schemas": {
"TestResponse": {
"type": "object",
"properties": {
"test": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string",
"enum": ["TEST"]
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment