elements icon indicating copy to clipboard operation
elements copied to clipboard

Contact > url not visible

Open jschaefer77 opened this issue 2 years ago • 1 comments

Describe the bug

If I have only a contact url and no email, contact won't be rendered by elements.

To Reproduce

  1. Given this OpenAPI document
openapi: 3.0.1
info:
  title: My title
  summary: My Summary
  description: |
    My description
  contact:
    name: API Support Team
    url: https://google.com

Expected behavior

Contact link should be visible even if there is only an url and no email.

Additional context

Add any other context about the problem here.

Screenshots

contact

Environment (remove any that are not applicable):

  • Library version: 7.5.13
  • OS: [e.g. Windows 7]
  • Browser: [e.g. Chrome 61]
  • Platform: [desktop or web]

jschaefer77 avatar Mar 14 '22 07:03 jschaefer77

@jschaefer77 It seems like it'll only show up if there's something in the terms of service. Adding that should be a workaround for now. We'll work on fixing this unless you want to take a stab at it.

mnaumanali94 avatar Mar 24 '22 17:03 mnaumanali94