[jira] [Updated] (NIFI-14142) Enum values in OpenAPI spec are declared incorrectly

2025-01-13 Thread David Handermann (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-14142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann updated NIFI-14142:

Fix Version/s: 2.2.0
   Resolution: Fixed
   Status: Resolved  (was: Patch Available)

> 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
> Fix For: 2.2.0
>
>  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)


[jira] [Updated] (NIFI-14142) Enum values in OpenAPI spec are declared incorrectly

2025-01-10 Thread endzeit (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-14142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

endzeit updated NIFI-14142:
---
Status: Patch Available  (was: In Progress)

> 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: 10m
>  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)


[jira] [Updated] (NIFI-14142) Enum values in OpenAPI spec are declared incorrectly

2025-01-09 Thread endzeit (Jira)


 [ 
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)