Temporal referencing fix

This commit is contained in:
Roman Hotsiy 2016-01-16 23:25:12 +02:00
parent abefb06dd5
commit abfd363401

View File

@ -52,7 +52,8 @@ export default class SchemaManager {
byPointer(pointer) {
let res = null;
try {
res = JsonPointer.get(this._schema, pointer);
// TODO: remove decodeURIComponent after this issue is fixed: https://github.com/BigstickCarpet/swagger-parser/issues/31
res = JsonPointer.get(this._schema, decodeURIComponent(pointer));
} catch(e) {/*skip*/ }
return res;
}