You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In last week's call we reached a tentative decision that "maybe we should focus on creating a well defined model for an HTTP request/response with sufficient semantics for APIs."
I'd like to suggest starting with HTTP fields (headers and trailers). This is a big pain point in OAS 3, and the modeling abilities there are minimal. It would be a huge win to back-port header modeling to 3.2 (or assuming we try to push a 3.2 out quickly, more likely this backport would go into 3.3). Here are some relevant issues, all of which center around more complex and detailed representations of headers:
I've started working up an overall JSON Schema-representable model of RFC 9110 §5.6 "Common Rules for Defining Field Values" and RFC 8941 "Structured Field Values for HTTP", which would cover a fair number of cases. We would want to keep these sets of rules distinct even though they have some overlap. There would also need to be some special-cases because of the long history of HTTP fields, and we'd probably want a registry to allow defining additional custom models as needed.
But mostly, we should be able to handle a lot of existing headers through 9110 plus a few custom models, and most new headers through 8941.
Data ModelingModeling any kind of data (media, grammar, code, etc.)
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In last week's call we reached a tentative decision that "maybe we should focus on creating a well defined model for an HTTP request/response with sufficient semantics for APIs."
I'd like to suggest starting with HTTP fields (headers and trailers). This is a big pain point in OAS 3, and the modeling abilities there are minimal. It would be a huge win to back-port header modeling to 3.2 (or assuming we try to push a 3.2 out quickly, more likely this backport would go into 3.3). Here are some relevant issues, all of which center around more complex and detailed representations of headers:
I've started working up an overall JSON Schema-representable model of RFC 9110 §5.6 "Common Rules for Defining Field Values" and RFC 8941 "Structured Field Values for HTTP", which would cover a fair number of cases. We would want to keep these sets of rules distinct even though they have some overlap. There would also need to be some special-cases because of the long history of HTTP fields, and we'd probably want a registry to allow defining additional custom models as needed.
But mostly, we should be able to handle a lot of existing headers through 9110 plus a few custom models, and most new headers through 8941.
Beta Was this translation helpful? Give feedback.
All reactions