This repository was archived by the owner on Jun 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Expand file tree Collapse file tree 7 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export class ChannelMainComponent implements OnInit {
36
36
37
37
38
38
ngOnInit ( ) : void {
39
- this . asyncApiService . getAsyncApis ( ) . subscribe (
39
+ this . asyncApiService . getAsyncApi ( ) . subscribe (
40
40
asyncapi => {
41
41
let schemas : Map < string , Schema > = asyncapi . components . schemas ;
42
42
this . schemaName = this . operation . message . payload . name . slice ( this . operation . message . payload . name . lastIndexOf ( '/' ) + 1 )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export class ChannelsComponent implements OnInit {
21
21
ngOnInit ( ) : void {
22
22
this . location . subscribe ( ( ) : void => this . setChannelSelectionFromLocation ( ) )
23
23
24
- this . asyncApiService . getAsyncApis ( ) . subscribe ( asyncapi => {
24
+ this . asyncApiService . getAsyncApi ( ) . subscribe ( asyncapi => {
25
25
this . channels = this . sortChannels ( asyncapi . channels ) ;
26
26
} ) ;
27
27
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export class InfoComponent implements OnInit {
16
16
constructor ( private asyncApiService : AsyncApiService ) { }
17
17
18
18
ngOnInit ( ) : void {
19
- this . asyncApiService . getAsyncApis ( ) . subscribe ( asyncapi => {
19
+ this . asyncApiService . getAsyncApi ( ) . subscribe ( asyncapi => {
20
20
this . asyncApiData = asyncapi ;
21
21
this . info = asyncapi . info ;
22
22
} ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class SchemasComponent implements OnInit {
20
20
21
21
ngOnInit ( ) : void {
22
22
this . location . subscribe ( ( ) : void => this . setSchemaSelectionFromLocation ( ) )
23
- this . asyncApiService . getAsyncApis ( ) . subscribe ( asyncapi => this . schemas = asyncapi . components . schemas ) ;
23
+ this . asyncApiService . getAsyncApi ( ) . subscribe ( asyncapi => this . schemas = asyncapi . components . schemas ) ;
24
24
}
25
25
26
26
setSchemaSelection ( schema : Schema ) : void {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class ServersComponent implements OnInit {
14
14
constructor ( private asyncApiService : AsyncApiService ) { }
15
15
16
16
ngOnInit ( ) : void {
17
- this . asyncApiService . getAsyncApis ( ) . subscribe ( asyncapi => this . servers = asyncapi . servers ) ;
17
+ this . asyncApiService . getAsyncApi ( ) . subscribe ( asyncapi => this . servers = asyncapi . servers ) ;
18
18
}
19
19
20
20
}
Original file line number Diff line number Diff line change @@ -120,12 +120,12 @@ export class AsyncApiMapperService {
120
120
121
121
private mapMessages ( message : ServerAsyncApiChannelMessage ) : Message [ ] {
122
122
if ( 'oneOf' in message ) {
123
- return this . mapServerAsyncApiMessage ( message . oneOf )
123
+ return this . mapServerAsyncApiMessages ( message . oneOf )
124
124
}
125
- return this . mapServerAsyncApiMessage ( [ message ] ) ;
125
+ return this . mapServerAsyncApiMessages ( [ message ] ) ;
126
126
}
127
127
128
- private mapServerAsyncApiMessage ( messages : ServerAsyncApiMessage [ ] ) : Message [ ] {
128
+ private mapServerAsyncApiMessages ( messages : ServerAsyncApiMessage [ ] ) : Message [ ] {
129
129
return messages . map ( ( v ) => {
130
130
return {
131
131
name : v . name ,
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export class AsyncApiService {
14
14
constructor ( private http : HttpClient , private asyncApiMapperService : AsyncApiMapperService ) {
15
15
}
16
16
17
- public getAsyncApis ( ) : Observable < AsyncApi > {
17
+ public getAsyncApi ( ) : Observable < AsyncApi > {
18
18
if ( this . docs ) {
19
19
return of ( this . docs ) ;
20
20
}
You can’t perform that action at this time.
0 commit comments