File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import { Reference } from './reference.js';
77import { Schema } from './schema.js' ;
88import { SecurityRequirement } from './security-requirement.js' ;
99import { SecurityScheme } from './security-scheme.js' ;
10+ import { Server } from './server.js' ;
11+ import { Tag } from './tag.js' ;
1012
1113export enum OpenApiVersion {
1214 // V2 = '2.0',
@@ -33,6 +35,12 @@ export class Api extends ApiLowLevel {
3335 return {
3436 openapi : this . options . openapi ,
3537 info : this . options . info ,
38+ servers : this . node . children
39+ . filter ( ( child ) : child is Server => child instanceof Server )
40+ . map ( ( child ) => child . synth ( ) ) ,
41+ tags : this . node . children
42+ . filter ( ( child ) : child is Tag => child instanceof Tag )
43+ . map ( ( child ) => child . synth ( ) ) ,
3644 components : {
3745 schemas : Object . fromEntries (
3846 this . node . children
You can’t perform that action at this time.
0 commit comments