[
https://issues.apache.org/jira/browse/NIFI-14142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
endzeit updated NIFI-14142:
---------------------------
Description:
The `swagger.json` / `swagger.yaml` generated during the build process contains
wrongly declared enum values.
Take the following excerpt:
{code}
"ActivateControllerServicesEntity" : {
"type" : "object",
"properties" : {
...
"state" : {
"type" : "string",
"description" : "The desired state of the descendant components",
"enum" : [ "ENABLED, DISABLED" ]
}
},
"xml" : {
"name" : "activateControllerServicesEntity"
}
}
{code}
It declares a single allowed enum values of "ENABLED, DISABLED" while it should
declare two values of "ENABLED" and "DISABLED" instead.
There are several similar declarations.
was:
The `swagger.json` / `swagger.yaml` generated during the build process contains
wrongly declared enum values.
{code}
{code}
> Enum values in OpenAPI spec are declared incorrectly
> ----------------------------------------------------
>
> Key: NIFI-14142
> URL: https://issues.apache.org/jira/browse/NIFI-14142
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 2.1.0
> Reporter: endzeit
> Priority: Major
>
> The `swagger.json` / `swagger.yaml` generated during the build process
> contains wrongly declared enum values.
> Take the following excerpt:
> {code}
> "ActivateControllerServicesEntity" : {
> "type" : "object",
> "properties" : {
> ...
> "state" : {
> "type" : "string",
> "description" : "The desired state of the descendant components",
> "enum" : [ "ENABLED, DISABLED" ]
> }
> },
> "xml" : {
> "name" : "activateControllerServicesEntity"
> }
> }
> {code}
> It declares a single allowed enum values of "ENABLED, DISABLED" while it
> should declare two values of "ENABLED" and "DISABLED" instead.
> There are several similar declarations.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)