Openbravo Issue Tracking System - Modules
View Issue Details
0057649ModulesOpenbravo Business APIpublic2025-01-15 10:562025-01-30 09:03
alostale 
eugen_hamuraru 
normalmajorhave not tried
closedfixed 
5
 
 
0057649: no swagger for Transactional Data category
In an instance with all modules installed, swagger document for the "Business API - Transactional Data" category is not genereated.
1. In livebulid with retail pos2 modules, open: https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/api?urls.primaryName=Business+API+-+Transactional+Data [^]

ERROR:
  * In UI this is displayed: No API definition provided.
  * In openbravo.log:
2025-01-15 09:23:50,562 [http-nio-127.0.0.1-8080-exec-7] ERROR org.openbravo.service.openapi.provider.OpenAPIProcessor - Error writing API org.openbravo.api-Business API - Transactional Data
java.lang.NullPointerException: null
    at org.openbravo.api.openapi.OpenApiEntityMapping.toSchemaProperties(OpenApiEntityMapping.java:292) ~[classes/:?]
    at org.openbravo.api.openapi.OpenApiEntityMapping.addPropertyMappingToSchema(OpenApiEntityMapping.java:195) ~[classes/:?]
No tags attached.
has duplicate defect 0057679 closed Triage Platform Conn Retail Modules Transactional API is not loading 
blocks defect 0057677 closed kousalya_r Modules Undefined property mappings introduced by the e-invoice for Italy module 
Issue History
2025-01-15 10:56alostaleNew Issue
2025-01-15 10:56alostaleAssigned To => Triage Platform Conn
2025-01-15 12:43adrianromeroAssigned ToTriage Platform Conn => eugen_hamuraru
2025-01-15 12:43adrianromeroStatusnew => scheduled
2025-01-16 09:56hgbotNote Added: 0174217
2025-01-17 09:15eugen_hamuraruRelationship addedblocks 0057677
2025-01-17 09:58adrianromeroRelationship addedhas duplicate 0057679
2025-01-30 09:03hgbotResolutionopen => fixed
2025-01-30 09:03hgbotStatusscheduled => closed
2025-01-30 09:03hgbotNote Added: 0174886
2025-01-30 09:03hgbotNote Added: 0174887

Notes
(0174217)
hgbot   
2025-01-16 09:56   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/415 [^]
(0174886)
hgbot   
2025-01-30 09:03   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api [^]
Changeset: 1b17a5514eca495a9e1418cd286dd0718d0f1493
Author: Eugen Hamuraru <eugen.hamuraru@openbravo.com>
Date: 30-01-2025 08:03:06
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/commit/1b17a5514eca495a9e1418cd286dd0718d0f1493 [^]

Fixes ISSUE-57649: Swagger generation for entity definition errors

---
A src-test/org/openbravo/api/openapi/OpenAPIGenerationTest.java
M src-test/org/openbravo/api/StandaloneTestSuite.java
M src/org/openbravo/api/openapi/ApiDefinitionGenerator.java
M src/org/openbravo/api/openapi/OpenApiEntityMapping.java
---
(0174887)
hgbot   
2025-01-30 09:03   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.api/-/merge_requests/415 [^]