Meeting: May 20th, 2025 #190
Replies: 2 comments
-
|
Video is available. |
Beta Was this translation helpful? Give feedback.
-
|
We had a conversation about a few ideas related to the last couple of meetings. One of the things we talked about last week was exploring if it might make sense to make certain kind of path overloading legal but have the behavior flagged in a specific way in the ADA. Without trying to design a real interface, the gist would be that a particular OpenAPI tool could choose to support only API descriptions without overlapping signatures and could do so in a predictable way by throwing an exception when processing an ADA that returned, say, I made an assertion that I think "decomposability" is a desirable quality for an API; the idea is that you can take an API description, cull an arbitrary selection of operations and implement those operations such that when you later implement the rest you do not risk breaking any existing clients. This quality is not necessarily true of APIs that have operations with overlapping signatures and some sort of precedence logic. We still focused on the problems already inherent in OpenAPI 3.x's signature tuple of method and path format even though the broader problem will involve bigger signature tuples. We discussed some different variations on "format strings":
Something that is notably different about the For example, even if you wanted to differentiate a UUID from a integer, you'd ostensibly be matching on We discussed a little how this can technically be solved in JSON Schema, or equivalent constructs, by obliging the author to manually resolve collisions with a negation. For example, A new thing we kicked around was the possibility of having a differentiability matrix of formats, likely the same formats in our format registry. I sort of love and hate this idea. It solves the problem of static differentiation of something complicated like a regex in sort of a brute-force way, but a brute-force way that is external to an OpenAPI document and sort of allows an author to be expressive and unambiguous in powerful (albeit still very constrained) ways with a syntax that is lightweight and intuitive. Essentially the format registry would have a table like this:
Such that if I have path formats I don't have any strong intuition on whether these musings are promising, but I wanted to document them for posterity. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Weekly meetings happen on Tuesdays
Time: 5pm GMT / 9am Pacific
Zoom: https://zoom-lfx.platform.linuxfoundation.org/meeting/98869769538?password=d769f940-7da7-4de8-9fab-685a1cc8f33e
Accessibility & Etiquette
Agenda Structure
Whether attending or not, anyone can comment on this issue prior to the meeting to suggest topics or to add comments on planned topics or proposals.
Beta Was this translation helpful? Give feedback.
All reactions