Replies: 4 comments 5 replies
-
|
I'm not suggesting a higher bar, I was trying to clarify your comment about having an openapi description that needed an overlay applying to it before use. We don't currently have a concept of "unready" API descriptions, and I'm not sure I'm comfortable with introducing one. I don't think we're disagreeing very much though, the suggestion of having some indication of overlays available for an openapi document might be useful. |
Beta Was this translation helpful? Give feedback.
-
|
What is confusing to me about this conversation is not what is written here, but what was discussed in the call. The Overlay needs a valid OpenAPI description, yes it does, I don't think anyone disagrees. However we also discussed about indicating that an OpenAPI is not itself "usable" (insert other words here, I think the terminology is still a bit under discussion) unless and until an Overlay has been applied. That's the part I didn't understand or align with, and it's probably more of an OpenAPI discussion than an Overlay one. |
Beta Was this translation helpful? Give feedback.
-
From the perspective of a tool vendor, "valid" means "whatever the customer brings" 😓 . Overlays have proven to be a very useful tool for when multiple tools (e.g. server frameworks) are producing OADs across an organization, and the tool vendor are effectively operating in the space of merging everything together and producing an artifact (client SDKs, gateway configurations, MCP servers, documentation). To do that without insanity, an OAD is a great intermediary artifact but it is commonplace that the "input" before it reaches us is only "almost" an OAD when strictly defined. As such we intentionally made a choice to apply overlays to any JSON or YAML file, before we ran it through our parser so that we could "fix" any invalidity in the OAD. Some of the most common things that come to mind in this respect are:
|
Beta Was this translation helpful? Give feedback.
-
|
terminology to reach consensus:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In the TDC call this past week, I tried to use Overlays as an example for talking about the scope of each specification, and said that Overlays require a "valid" OpenAPI document, where "valid" means "any compliant parser will parse it successfully."
While everyone agreed that un-parsable OAD documents are outside of the scope of Overlays, the word "valid" and/or its definition proved unexpectedly contentious.
@hellobudha were you using a different definition of "valid"? That is what it sounded like to me but I was on 3 hours of sleep and may have just gotten my wires crossed.
@lornajane If I understand you correctly, you perhaps want a higher bar than "it parses"? Perhaps "usable"? What would that look like?
In practical terms, here's the use case I want to understand:
Is this a valid use case for Overlays? If so, how does it square with setting a higher bar for an Overaly input than "it parses"?
Also, how would an Overlay tool enforce a higher bar than "it parses"?
Other than the above use case, I don't really have a horse in this race. But I do want to know whether the advice we're giving people in the OAS repo is actually within the scope of Overlays.
Beta Was this translation helpful? Give feedback.
All reactions