Replies: 6 comments 10 replies
-
Syntax example could be something like these (and if you comment on this, I'll assume you think the overall idea is excellent):
We also talked about:
|
Beta Was this translation helpful? Give feedback.
-
My main concern is that any semantic selection feature be usable consistently across Overlay and Arazzo with OAS 3.x and Moonwalk (and within OAS if relevant). |
Beta Was this translation helpful? Give feedback.
-
Prior art:
Many of these have variable capture and reuse for replacement operations. We may not use this exact syntax, but I think this demonstrates there's a real use case for semantic selection expressions. |
Beta Was this translation helpful? Give feedback.
-
We talked about what we should do when something that is semantically targeted, but it is a It is totally valid to target something that is referenced from lots of places - but target it in the place it is actually declared, not via reference. |
Beta Was this translation helpful? Give feedback.
-
Even though @handrews was strongly opposed(!) I wanted to document for posterity the suggestion to support an embeddable programming language such as JavaScript or Lua, both of which have significant tooling available. There is also Common Expression Language, which might be reasonable to consider. And any of these could piggyback off ADA. |
Beta Was this translation helpful? Give feedback.
-
I did some more research on prior art that provide transforms on YAML or JSON, in descending order of what I found relevant, more or less (though I found them all somewhat relevant):
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
For example, how to target all parameters with a name matching a pattern. Or all Array schemas. Rather than needing some JSONPath expression that checks in all the places that these items can go in an OpenAPI file, consider the OpenAPI file as a data structure and access everything more semantically rather than syntactically.
You probably already have linting rules that do some of this stuff, feel free to add them as example here.
Beta Was this translation helpful? Give feedback.
All reactions