[ 
https://issues.apache.org/jira/browse/NIFI-14142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17912632#comment-17912632
 ] 

ASF subversion and git services commented on NIFI-14142:
--------------------------------------------------------

Commit 479580592973483fcf74b538c213dbe7ada69b9b in nifi's branch 
refs/heads/main from Lucas
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4795805929 ]

NIFI-14142 Fixed enum values for OpenAPI using String arrays (#9626)

Signed-off-by: David Handermann <[email protected]>

> 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
>            Assignee: endzeit
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to