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
Can a reference object ($ref) be used for the update property?
update
Any
An object with the properties and values to be merged with the object(s) referenced by the target. This property has no impact if remove property is true.
The reason I ask is that people struggle with the OpenAPI format itself. Take overlays and it adds an extra level of complexity. The spec seems silent about it and I'm unclear if Any allows for reference object usage.
I would like to be able to use the overlay like this:
Why? Because I could use my knowledge of OpenAPI, existing OpenAPI authoring tooling, and not need to learn anything new other than this little snippet I copy and paste into its own separate overlay.yaml file.
The text was updated successfully, but these errors were encountered:
@adamaltman The update object in this example is valid.
It would be merged with the target document, resulting in a document that has a $ref field in the root object if the target document represents a single JSON object.
If that target document was a valid OpenAPI description, then the end result is not a valid OpenAPI description, as the OpenAPI Object does not allow $ref.
Can a reference object (
$ref
) be used for theupdate
property?The reason I ask is that people struggle with the OpenAPI format itself. Take overlays and it adds an extra level of complexity. The spec seems silent about it and I'm unclear if
Any
allows for reference object usage.I would like to be able to use the overlay like this:
Why? Because I could use my knowledge of OpenAPI, existing OpenAPI authoring tooling, and not need to learn anything new other than this little snippet I copy and paste into its own separate
overlay.yaml
file.The text was updated successfully, but these errors were encountered: