-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sldss 27892 tqc ref do not work properly #159
Conversation
spec/process-yaml.js
Outdated
@@ -0,0 +1,53 @@ | |||
const yaml = require('js-yaml'); | |||
const fs = require('fs'); | |||
const { Resolver } = require('@stoplight/json-ref-resolver'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
spec/process-yaml.js
Outdated
console.log("-----------------------------------------------------------"); | ||
console.log(resolved); | ||
console.log("before resolved.result"); | ||
var destinationJson = {"x-paths": resolved.result} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let destinationJson = { "x-paths": resolved.result };
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
Could you describe what's the problem you're solving and what's the overall solution? |
Couple of questions:
|
|
The problem is: we use latest version of ReDoc. Latest version doesn't support the directive $ref the second level (we use it for TQC endpoint description). So the script resolve the $ref and replace with the certain value.