diff --git a/springwolf-ui/src/app/components/new/schema/schema.component.css b/springwolf-ui/src/app/components/new/schema/schema.component.css index 2b53acfd8..e5ef76bbb 100644 --- a/springwolf-ui/src/app/components/new/schema/schema.component.css +++ b/springwolf-ui/src/app/components/new/schema/schema.component.css @@ -9,7 +9,6 @@ .description { overflow: auto; - margin-bottom: -1em; } .example { diff --git a/springwolf-ui/src/app/components/new/schema/schema.component.html b/springwolf-ui/src/app/components/new/schema/schema.component.html index 340a48f00..91437fdc1 100644 --- a/springwolf-ui/src/app/components/new/schema/schema.component.html +++ b/springwolf-ui/src/app/components/new/schema/schema.component.html @@ -54,10 +54,10 @@ - + {{ value.items.refTitle }}[] @@ -68,7 +68,7 @@ {{ value.items.type }}[] diff --git a/springwolf-ui/src/app/models/schema.model.ts b/springwolf-ui/src/app/models/schema.model.ts index 2834eb893..7148107dc 100644 --- a/springwolf-ui/src/app/models/schema.model.ts +++ b/springwolf-ui/src/app/models/schema.model.ts @@ -24,6 +24,7 @@ export interface Schema { // type == ref refAnchorUrl?: string; refName?: string; + refTitle?: string; // type == object properties?: { [key: string]: Schema }; required?: string[]; diff --git a/springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts b/springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts index 3ae22550d..bc2b2aba7 100644 --- a/springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts +++ b/springwolf-ui/src/app/service/asyncapi/asyncapi-mapper.service.ts @@ -524,6 +524,7 @@ export class AsyncApiMapperService { // type == ref refAnchorUrl: AsyncApiMapperService.BASE_URL + schemaRefId, refName: schemaRefId, + refTitle: this.resolveTitleFromName(schemaRefId), }; }