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: Uniqueness of group ID when special characters exist in tags #2664

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cx-emerge
Copy link

@cx-emerge cx-emerge commented Feb 25, 2025

What/Why/How?

Uniqueness of group ID when special characters exist in tags

...
      tags:
        - (RFC2544)配置管理
...
      tags:
        - (RFC2544)依赖管理
...

When the above content appears in the tags of OpenAPI, the safeSlugify function will replace them with the same content (RFC2544).
This will result in different content generating the same ID.

Reference

null

Tests

Add an API with the above tags content in museum.yaml, and click the left menu to check if it can expand properly.

Screenshots (optional)

null

Check yourself

  • Code is linted
  • Tested
  • All new/updated code is covered with tests

@cx-emerge cx-emerge requested a review from a team as a code owner February 25, 2025 03:03
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.

1 participant