Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer label to language in x-code-samples for keys #815

Closed
atkawa7 opened this issue Feb 12, 2019 · 0 comments
Closed

Prefer label to language in x-code-samples for keys #815

atkawa7 opened this issue Feb 12, 2019 · 0 comments

Comments

@atkawa7
Copy link

atkawa7 commented Feb 12, 2019

In https://github.com/Rebilly/ReDoc/blob/master/src/components/RequestSamples/RequestSamples.tsx redoc prefers lang as key which causes duplicate keys when multiple clients supports the same language i.e Okhttp vs Unirest.

[{
  "lang": "Java",
  "source": ".....",
  "label": "Okhttp"
},
{
  "lang": "Java",
  "source": ".....",
  "label": "Unirest"
}
]
  <TabPanel key={sample.lang}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant