[jira] [Resolved] (FINERACT-1105) Swagger generates invalid Open API Specification file

2020-08-26 Thread Michael Vorburger (Jira)


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

Michael Vorburger resolved FINERACT-1105.
-
Resolution: Fixed

> Swagger generates invalid Open API Specification file
> -
>
> Key: FINERACT-1105
> URL: https://issues.apache.org/jira/browse/FINERACT-1105
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Chinmay Kulkarni
>Assignee: Chinmay Kulkarni
>Priority: Minor
> Fix For: 1.4.0
>
>
> The Open API Specification file produced by Swagger Gradle Plugin is invalid.
>  # Run *./gradlew build*
>  # Use the contents of the generated Open API Spec file 
> *build/classes/java/main/static/swagger-ui/fineract.yaml* to debug/validate 
> spec file from here: [https://validator.swagger.io/]  - Use Debug POST 
> request to validate 
> The validator returns the following:
> {code:yaml}
> ---
> messages: - "attribute paths.'/glclosures'(get).responses.200.description is 
> missing"
> - "attribute paths.'/glclosures'(post).responses.200.description is missing"
> - "attribute paths.'/glclosures/{glClosureId}'(get).responses.200.description 
> is missing"
> - "attribute paths.'/glclosures/{glClosureId}'(put).responses.200.description 
> is missing"
> - "attribute 
> paths.'/glclosures/{glClosureId}'(delete).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/financialactivityaccounts'(get).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/financialactivityaccounts'(post).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/financialactivityaccounts/{mappingId}'(get).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/financialactivityaccounts/{mappingId}'(put).responses.200.description\
>   \ is missing"
> - "attribute paths.'/glaccounts/template'(get).responses.200.description is 
> missing"
> - "attribute paths.'/glaccounts'(get).responses.200.description is missing"
> - "attribute paths.'/glaccounts'(post).responses.200.description is missing"
> - "attribute paths.'/glaccounts/{glAccountId}'(get).responses.200.description 
> is missing"
> - "attribute paths.'/glaccounts/{glAccountId}'(put).responses.200.description 
> is missing"
> - "attribute 
> paths.'/glaccounts/{glAccountId}'(delete).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/journalentries/{transactionId}'(post).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/journalentries/{journalEntryId}'(get).responses.200.description\
>   \ is missing"
> - "attribute paths.'/journalentries'(get).responses.200.description is 
> missing"
> - "attribute paths.'/journalentries'(post).responses.200.description is 
> missing"
> - "attribute paths.'/provisioningentries'(get).responses.200.description is 
> missing"
> - "attribute paths.'/provisioningentries'(post).responses.200.description is 
> missing"
> - "attribute 
> paths.'/provisioningentries/entries'(get).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/provisioningentries/{entryId}'(get).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/provisioningentries/{entryId}'(post).responses.200.description\
>   \ is missing"
> - "attribute paths.'/accountingrules'(get).responses.200.description is 
> missing"
> - "attribute paths.'/accountingrules'(post).responses.200.description is 
> missing"
> - "attribute 
> paths.'/accountingrules/{accountingRuleId}'(get).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/accountingrules/{accountingRuleId}'(put).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/accountingrules/{accountingRuleId}'(delete).responses.200.description\
>   \ is missing"
> - "attribute paths.'/accountingrules/template'(get).responses.200.description 
> is missing"
> - "attribute paths.'/audits/searchtemplate'(get).responses.200.description is 
> missing"
> - "attribute paths.'/audits'(get).responses.200.description is missing"
> - "attribute paths.'/audits/{auditId}'(get).responses.200.description is 
> missing"
> - "attribute 
> paths.'/makercheckers/searchtemplate'(get).responses.200.description\
>   \ is missing"
> - "attribute paths.'/makercheckers/{auditId}'(post).responses.200.description 
> is missing"
> - "attribute 
> paths.'/makercheckers/{auditId}'(delete).responses.200.description is\
>   \ missing"
> - "attribute paths.'/makercheckers'(get).responses.200.description is missing"
> - "attribute paths.'/accountnumberformats'(get).responses.200.description is 
> missing"
> - "attribute paths.'/accountnumberformats'(post).responses.200.description is 
> missing"
> - "attribute 
> paths.'/accountnumberformats/template'(get).responses.200.description\
>   \ is missing"
> - "attribute 
> 

[jira] [Resolved] (FINERACT-1105) Swagger generates invalid Open API Specification file

2020-08-23 Thread Yemdjih Kaze Nasser (Jira)


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

Yemdjih Kaze Nasser resolved FINERACT-1105.
---
Fix Version/s: 1.4.0
   Resolution: Fixed

> Swagger generates invalid Open API Specification file
> -
>
> Key: FINERACT-1105
> URL: https://issues.apache.org/jira/browse/FINERACT-1105
> Project: Apache Fineract
>  Issue Type: Improvement
>Reporter: Chinmay Kulkarni
>Assignee: Chinmay Kulkarni
>Priority: Minor
> Fix For: 1.4.0
>
>
> The Open API Specification file produced by Swagger Gradle Plugin is invalid.
>  # Run *./gradlew build*
>  # Use the contents of the generated Open API Spec file 
> *build/classes/java/main/static/swagger-ui/fineract.yaml* to debug/validate 
> spec file from here: [https://validator.swagger.io/]  - Use Debug POST 
> request to validate 
> The validator returns the following:
> {code:yaml}
> ---
> messages: - "attribute paths.'/glclosures'(get).responses.200.description is 
> missing"
> - "attribute paths.'/glclosures'(post).responses.200.description is missing"
> - "attribute paths.'/glclosures/{glClosureId}'(get).responses.200.description 
> is missing"
> - "attribute paths.'/glclosures/{glClosureId}'(put).responses.200.description 
> is missing"
> - "attribute 
> paths.'/glclosures/{glClosureId}'(delete).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/financialactivityaccounts'(get).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/financialactivityaccounts'(post).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/financialactivityaccounts/{mappingId}'(get).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/financialactivityaccounts/{mappingId}'(put).responses.200.description\
>   \ is missing"
> - "attribute paths.'/glaccounts/template'(get).responses.200.description is 
> missing"
> - "attribute paths.'/glaccounts'(get).responses.200.description is missing"
> - "attribute paths.'/glaccounts'(post).responses.200.description is missing"
> - "attribute paths.'/glaccounts/{glAccountId}'(get).responses.200.description 
> is missing"
> - "attribute paths.'/glaccounts/{glAccountId}'(put).responses.200.description 
> is missing"
> - "attribute 
> paths.'/glaccounts/{glAccountId}'(delete).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/journalentries/{transactionId}'(post).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/journalentries/{journalEntryId}'(get).responses.200.description\
>   \ is missing"
> - "attribute paths.'/journalentries'(get).responses.200.description is 
> missing"
> - "attribute paths.'/journalentries'(post).responses.200.description is 
> missing"
> - "attribute paths.'/provisioningentries'(get).responses.200.description is 
> missing"
> - "attribute paths.'/provisioningentries'(post).responses.200.description is 
> missing"
> - "attribute 
> paths.'/provisioningentries/entries'(get).responses.200.description is\
>   \ missing"
> - "attribute 
> paths.'/provisioningentries/{entryId}'(get).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/provisioningentries/{entryId}'(post).responses.200.description\
>   \ is missing"
> - "attribute paths.'/accountingrules'(get).responses.200.description is 
> missing"
> - "attribute paths.'/accountingrules'(post).responses.200.description is 
> missing"
> - "attribute 
> paths.'/accountingrules/{accountingRuleId}'(get).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/accountingrules/{accountingRuleId}'(put).responses.200.description\
>   \ is missing"
> - "attribute 
> paths.'/accountingrules/{accountingRuleId}'(delete).responses.200.description\
>   \ is missing"
> - "attribute paths.'/accountingrules/template'(get).responses.200.description 
> is missing"
> - "attribute paths.'/audits/searchtemplate'(get).responses.200.description is 
> missing"
> - "attribute paths.'/audits'(get).responses.200.description is missing"
> - "attribute paths.'/audits/{auditId}'(get).responses.200.description is 
> missing"
> - "attribute 
> paths.'/makercheckers/searchtemplate'(get).responses.200.description\
>   \ is missing"
> - "attribute paths.'/makercheckers/{auditId}'(post).responses.200.description 
> is missing"
> - "attribute 
> paths.'/makercheckers/{auditId}'(delete).responses.200.description is\
>   \ missing"
> - "attribute paths.'/makercheckers'(get).responses.200.description is missing"
> - "attribute paths.'/accountnumberformats'(get).responses.200.description is 
> missing"
> - "attribute paths.'/accountnumberformats'(post).responses.200.description is 
> missing"
> - "attribute 
> paths.'/accountnumberformats/template'(get).responses.200.description\
>   \ is missing"
> - "attribute