Resolve model names in OAS3 (fixes #3457)
This commit is contained in:
@@ -282,9 +282,13 @@ export class Model extends Component {
|
||||
}
|
||||
|
||||
getModelName =( ref )=> {
|
||||
console.log({ref})
|
||||
if ( ref.indexOf("#/definitions/") !== -1 ) {
|
||||
return ref.replace(/^.*#\/definitions\//, "")
|
||||
}
|
||||
if ( ref.indexOf("#/components/schemas/") !== -1 ) {
|
||||
return ref.replace("#/components/schemas/", "")
|
||||
}
|
||||
}
|
||||
|
||||
getRefSchema =( model )=> {
|
||||
|
||||
Reference in New Issue
Block a user