improvement: OAS3 $ref friendly-name regex in model.jsx (via #5334)
This commit is contained in:
@@ -23,7 +23,7 @@ export default class Model extends ImmutablePureComponent {
|
|||||||
return ref.replace(/^.*#\/definitions\//, "")
|
return ref.replace(/^.*#\/definitions\//, "")
|
||||||
}
|
}
|
||||||
if ( ref.indexOf("#/components/schemas/") !== -1 ) {
|
if ( ref.indexOf("#/components/schemas/") !== -1 ) {
|
||||||
return ref.replace("#/components/schemas/", "")
|
return ref.replace(/^.*#\/components\/schemas\//, "")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user