Skip to content
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

uri ref is broken, if property name is "MyGeneric<Temp>" then ref is "MyGeneric%3CTemp%3E" and it's not resolved. #293

Open
NikitaFedorov1 opened this issue Jun 1, 2024 · 0 comments

Comments

@NikitaFedorov1
Copy link

NikitaFedorov1 commented Jun 1, 2024

#/components/schemas/api/properties/MyGeneric%3Calias-_index.d.ts-541-729-_index.d.ts-0-1797420362607%3E not found
    // actual: 
    // map["MyGeneric%3CTemp%3E"]
    // expected:
    // map["MyGeneric<Temp>"]
    return map[name]; 

current:

var autocorrectRef = function autocorrectRef(ref) {
  return decodeURI(ref[1] === "/" ? ref : "#/" + ref.slice(1));
};

should be like:

var autocorrectRef = function autocorrectRef(ref) {
  return decodeURI(ref[1] === "/" ? ref : "#/" + ref.slice(1));
};

And nested refs ain't resolved:

Error: Schema #/components/schemas/consolidation/properties/Command not found
@NikitaFedorov1 NikitaFedorov1 changed the title uri ref is broken, if property name is "MyGeneric<Temp>" then ref is "MyGeneric%3Temp%3E" and it's not resolved. uri ref is broken, if property name is "MyGeneric<Temp>" then ref is "MyGeneric%3CTemp%3E" and it's not resolved. Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant