Openbravo Issue Tracking System - Modules
View Issue Details
0057481ModulesOpen APIpublic2024-12-18 11:512024-12-18 17:14
alostale 
Triage Platform Conn 
normalminorhave not tried
closedfixed 
5
 
 
0057481: generated OpenAPI schema names don't validate
Schema names of generated APIs don't comply with specifications as they contain invalid characters such as blank spaces.

All the fixed fields declared above are objects that MUST use keys that match the regular expression: ^[a-zA-Z0-9\.\-_]+$. [1]

[1] https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#components-object [^]
Validate the swagger document for any generated API (ie. Business API Masterdata).
ERROR: many occurrences of components.schemas.Schema name XXX doesn't adhere to regular expression ^[a-zA-Z0-9\.\-_]+$
No tags attached.
related to defect 0056376 closed fermin_gascon Retail Modules openbravo Swaggers errors 
Issue History
2024-12-18 11:51alostaleNew Issue
2024-12-18 11:51alostaleAssigned To => Triage Platform Conn
2024-12-18 11:51alostaleRelationship addedrelated to 0056376
2024-12-18 11:57hgbotNote Added: 0173433
2024-12-18 17:14hgbotResolutionopen => fixed
2024-12-18 17:14hgbotStatusnew => closed
2024-12-18 17:14hgbotNote Added: 0173456
2024-12-18 17:14hgbotNote Added: 0173457

Notes
(0173433)
hgbot   
2024-12-18 11:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/408 [^]
(0173456)
hgbot   
2024-12-18 17:14   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.api [^]
Changeset: e0860f6017b6612e4a09f7890dce46f9267f6430
Author: Asier Lostalé <a.lostale@orisha.com>
Date: 18-12-2024 16:14:36
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/commit/e0860f6017b6612e4a09f7890dce46f9267f6430 [^]

fixes BUG-57481: generated OpenAPI schema names don't validate

---
M src/org/openbravo/api/openapi/OpenApiEntityMapping.java
---
(0173457)
hgbot   
2024-12-18 17:14   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.api/-/merge_requests/408 [^]