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

Clarify if an ID is a UUID or a UUID-like string #20

Open
lfse-slafleur opened this issue Aug 29, 2024 · 0 comments
Open

Clarify if an ID is a UUID or a UUID-like string #20

lfse-slafleur opened this issue Aug 29, 2024 · 0 comments

Comments

@lfse-slafleur
Copy link
Member

lfse-slafleur commented Aug 29, 2024

The current specification of ID's in the various formats is a bit ambigious. The description of ID specifies UUID while the rules of ID specifiy a less restrictive form (2-64 characters, only alphanumeric characters etc.). JSON schema does have a UUID type (https://json-schema.org/understanding-json-schema/reference/string#resource-identifiers). If really a UUID is required we should make the rules regarding possible ID's stricter by changing the pattern or using the 'uuid' format. Or we should clarify the description that a UUID-like identifier is required.

Example:
https://github.com/flexiblepower/s2-ws-json/blob/main/s2-json-schema/schemas/ID.schema.json#L7C5-L7C55 References An identifier expressed as a UUID while "pattern": "[a-zA-Z0-9\\-_:]{2,64}" which is less restrictive than a UUID

@wilcowijbrandi Perhaps you can clarify what the intent was?

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