Skip to content

Instantly share code, notes, and snippets.

@RInverid
Created February 28, 2023 11:06
Show Gist options
  • Save RInverid/417213fbba82782204ddce87b22d5d62 to your computer and use it in GitHub Desktop.
Save RInverid/417213fbba82782204ddce87b22d5d62 to your computer and use it in GitHub Desktop.
Java generator issue proof - arraylist instead of Set
{
"openapi" : "3.0.1",
"info" : {
"title" : "Issue sample",
"version" : "1",
"contact": {},
"description": "Issue example"
},
"servers" : [],
"paths" : {
"/example" : {
"get" : {
"operationId" : "getSettings",
"responses" : {
"default" : {
"description" : "default response",
"content" : {
"application/json" : {
"schema" : {
"$ref" : "#/components/schemas/exampleDTO"
}
}
}
}
}
}
}
},
"components" : {
"schemas" : {
"exampleDTO" : {
"type" : "object",
"properties" : {
"enumSet" : {
"uniqueItems" : true,
"type" : "array",
"items" : {
"type" : "string",
"enum" : [ "ENTRYONE", "ENTRYTWO" ]
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment