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 ID validation #42

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

Fix ID validation #42

wants to merge 1 commit into from

Conversation

Flix6x
Copy link
Collaborator

@Flix6x Flix6x commented Aug 29, 2024

Before, the ID was restricted to follow a UUID format while the S2 spec is less restrictive (strings composed by alphanumeric, dashes, underscores and semicolons with a range between 2 and 64).

…mat while the S2 spec is less restrictin (strings composed by alphanmeric, dashes, underscores and semicolons with a range between 2 and 64).

Signed-off-by: Victor Garcia Reolid <[email protected]>
@Flix6x Flix6x added the bug Something isn't working label Aug 29, 2024
@Flix6x Flix6x self-assigned this Aug 29, 2024
@lfse-slafleur
Copy link
Member

Before, the ID was restricted to follow a UUID format while the S2 spec is less restrictive (strings composed by alphanumeric, dashes, underscores and semicolons with a range between 2 and 64).

@Flix6x While you are absolutely right that the JSON schema and Asyncapi specify a range between 2-64, it might be good we check this with the maintainers of s2-ws-json first if it isn't a bug. The description of the specifications state that a UUID is expected: https://github.com/flexiblepower/s2-ws-json/blob/main/s2-json-schema/schemas/ID.schema.json#L7C5-L7C55 Perhaps they meant 'UUID-like' but it might be good to clarify. Asked the question: flexiblepower/s2-ws-json#20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants