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

fix api version error #6493

Merged
merged 1 commit into from Sep 13, 2023
Merged

fix api version error #6493

merged 1 commit into from Sep 13, 2023

Conversation

jackkav
Copy link
Contributor

@jackkav jackkav commented Sep 13, 2023

Fixes #6465

changelog(Fixes): Fixed issue #6465 where a render error would be through in some cases depending on the version format of an OpenAPI spec

@@ -877,7 +877,7 @@ const ProjectRoute: FC = () => {
{item.workspace.name}
</Heading>
<div className="flex-1 flex flex-col gap-2 justify-end text-sm text-[--hl]">
{item.spec?.info?.version && (
{typeof item.spec?.info?.version === 'string' && (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder if the version can be a number?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the v prefix is trivial ui sugar. Not worth adding more conditions to

@jackkav jackkav merged commit 368c34f into Kong:develop Sep 13, 2023
7 checks passed
@jackkav jackkav deleted the fix/api-version-error branch September 13, 2023 12:45
@webdeveloperjon webdeveloperjon mentioned this pull request Sep 18, 2023
1 task
choas added a commit to choas/insomnia that referenced this pull request Sep 29, 2023
pulling pull request from 8.0.0
Kong#6493
bernd pushed a commit to bernd/unetus that referenced this pull request Sep 30, 2023
Fixes Kong#6465

(cherry picked from commit 368c34f)
jackkav added a commit to jackkav/insomnia that referenced this pull request Nov 24, 2023
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

Successfully merging this pull request may close these issues.

Application Error: Failed to render - s.spec.info.version.startsWith is not a function
2 participants