Organizing OpenAPI endpoints together with configuration & map #40
Replies: 7 comments
-
Output from GA4GH Connect Ascona meeting in April'24 reaches the following agreement:
|
Beta Was this translation helpful? Give feedback.
-
(Pasting from the conversation happening in issue #136 ) From Michael Baudis: @jordi @datsirul While in principle it is great to spot & correct this, the overarching question we had previously was about maintaining the OpenAPI documents at all. In the Ascona developer session the conclusion was basically that: the Beacon schema (esp. model) cannot be defined in OpenAPI (at least not reasonably) |
Beta Was this translation helpful? Give feedback.
-
(Pasting from issue #136 )
|
Beta Was this translation helpful? Give feedback.
-
IMHO, the steps we are doing now, thanks to @datsirul, are in the same direction that we agreed to follow. |
Beta Was this translation helpful? Give feedback.
-
First of all thanks to @datsirul for his work on validating OpenAPI part. Two years ago I used OpenAPI to extract parameters for GET endpoints, but obviously POST is much more complicated.
Totally agree. I tried to autogenerate OpenAPI from the /configuration in Java Beacon Implementation and had no much success...
Although Beacon's schemas was updated to the "2020-12" they are still "draft-7"... I hardly see any new features... For instance: Another thing is that in "2019-09" Ideally we would pass to the OpenAPI 3.1. Where do we specify OpenAPI version? Kind regards, Dmitry |
Beta Was this translation helpful? Give feedback.
-
Thank you all for your work on this discussion. I understand that significant progress has been made on this topic, so I'm not trying to restart the conversation from scratch but rather to better understand the situation and see if we can help. It seems that the current path presented is to potentially drop OpenAPI and replace it completely with JSON Schema. One of the reasons noted is OpenAPI’s schema limitations, so it would be great to get an example to understand the issue. Another point I wanted to note is OpenAPI’s strong support for REST APIs, which helps ensure requests and responses are correctly formulated. JSON Schema, on the other hand, is primarily used for describing and validating JSON data, such as the content within Beacon requests and responses. If moving to JSON Schema requires manual adjustments to achieve what OpenAPI does automatically, it seems this might add complexity and increase the potential for issues and errors. Additionally, OpenAPI offers several advantages, such as:
Given these benefits, it’s important to carefully consider the implications before moving away from OpenAPI (at least for the RESTful parts). Best regards, |
Beta Was this translation helpful? Give feedback.
-
The current agreement (Ascona, 2024) is to move from "OpenAPI first" to "extend the JSON Schema to allow generating OpenAPI from it" (a.k.a. as "OpenAPI generated". See some reasons why in my post in this thread In summary:
|
Beta Was this translation helpful? Give feedback.
-
This is the original statement by @jrambla from the (now closed) issue #30:
We discussed some of the associated issues at the BeaconAPI call on 2022-07-12, e.g.:
endpoints.json
per entity requires a lot of diligence when changing things -> defies the "jut add & modify entity directory" concept for some partDiscuss!
Beta Was this translation helpful? Give feedback.
All reactions