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
Hello, it seems like the Rolodex.Resolve() method doesn't override the description from #ref definition and resolving all refs.
I have the following spec example:
openapi: 3.1.0info:
title: Exampleversion: 0.0.1components:
schemas:
OSVersionCheck:
description: Posture check for the version of operating systemtype: objectproperties:
android:
description: Minimum version of Android$ref: '#/components/schemas/MinVersionCheck'example:
android:
min_version: "13"MinVersionCheck:
description: Posture check for the version of operating systemtype: objectproperties:
min_version:
description: Minimum acceptable versiontype: stringexample: "14.3"required:
- min_version
After outputting the result I got this:
openapi: 3.1.0info:
title: Exampleversion: 0.0.1components:
schemas:
OSVersionCheck:
description: Posture check for the version of operating systemtype: objectproperties:
android:
description: Posture check for the version of operating systemtype: objectproperties:
min_version:
description: Minimum acceptable versiontype: stringexample: "14.3"required:
- min_versionexample:
android:
min_version: "13"MinVersionCheck:
description: Posture check for the version of operating systemtype: objectproperties:
min_version:
description: Minimum acceptable versiontype: stringexample: "14.3"required:
- min_version
The expected output is:
...
android:
description: Minimum version of Androidtype: objectproperties:
min_version:
description: Minimum acceptable versiontype: stringexample: "14.3"required:
- min_version
...
There is a known bug in the resolver that appears haphazardly when resolving async extracted refs (which is the default).
The solution (until the root cause is fixed). Is to extract references synchronously by setting the ExtractRefsSequentially boolean to true on your indexConfig
The result you have is the expected outcome of how the resolver works. It's not performing any kind of property merging or overriding, it's simply resolving the references, literally by re-pointing the underlying node tree. It's resolving like a compiler resolves pointers, it is not going to deliver what you're looking for.
Hello, it seems like the Rolodex.Resolve() method doesn't override the description from #ref definition and resolving all refs.
I have the following spec example:
After outputting the result I got this:
The expected output is:
This is the code I am using:
The text was updated successfully, but these errors were encountered: