Authress-Engineering / openapi-explorer

OpenAPI Web component to generate a UI from the spec.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue providing multiple custom sections

addshore opened this issue · comments

Up until now I have used a single custom-section slot.

I just tried the following to add a second custom nav entry and custom slot

    <div slot="nav-section" className = {styles.customSectionBar}>Rate limits</div>
    <div slot="custom-section" className = {styles.customSection}>
      <OApiRateLimits/>
    </div>
    <div slot="nav-section" className = {styles.customSectionBar}>Filtering</div>
    <div slot="custom-section" className = {styles.customSection}>
      <OApiFiltering/>
    </div>

However this only generates a single new page with the content of both sections combined.
It does however generate two sidebar entries.

image

I figure my expectation would either be:

  • This is how multiple parts of extra content appear, however this is inconsistent with the "Authentication" appearance alongside other custom content on another page. I'd also then expect the sidebar links to take you to the correct place in the content
  • Multiple custom sections appear on multiple separate pages.

Fixed in 2.1.624