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

Support GUIDs in id generator templates #80

Open
svdHero opened this issue Jun 30, 2021 · 3 comments
Open

Support GUIDs in id generator templates #80

svdHero opened this issue Jun 30, 2021 · 3 comments
Labels
Needs: Triage Needs sorting

Comments

@svdHero
Copy link

svdHero commented Jun 30, 2021

Hi there,

in the options file, one can set templates for how ids are generated:

  "TemplateIdAas": "https://example.com/ids/aas/DDDD_DDDD_DDDD_DDDD",
  "TemplateIdAsset": "https://example.com/ids/asset/DDDD_DDDD_DDDD_DDDD",
  "TemplateIdSubmodelInstance": "https://example.com/ids/sm/DDDD_DDDD_DDDD_DDDD",
  "TemplateIdSubmodelTemplate": "https://example.com/ids/sm/DDDD_DDDD_DDDD_DDDD",
  "TemplateIdConceptDescription": "https://example.com/ids/cd/DDDD_DDDD_DDDD_DDDD",

In the enterprise software world, especially in a .NET context, it is best practice to use UUIDs or, in particular, Microsoft's GUIDs for ids.

Hence, it would be great, if you could extend the method Options.GenerateIdAccordingTemplate so that templates such as

  "TemplateIdAas": "https://example.com/ids/aas/G",

are accepted and generate an id like

https://example.com/ids/aas/3ff9a07e1b0f452e803aecb4a210ab86

using the function call Guid.NewGuid().ToString("N").

@svdHero svdHero changed the title Add GUIDs to id generator template Support GUIDs in id generator templates Jun 30, 2021
@BirgitBoss
Copy link
Contributor

The specification of the Asset Administration Shell does not allow GUID or UUIDs. This is the reason this is not (and should not be) supported. For AAS and submodels it is typcial to use URLs.

We can discuss with the specification team whether to extend the enumeration of allowed idTypes with GUIDs or UUIDs in general.

@BirgitBoss BirgitBoss added documentation Improvements or additions to documentation and removed documentation Improvements or additions to documentation labels Jul 20, 2021
@svdHero
Copy link
Author

svdHero commented Jul 20, 2021

What I meant was generating a Guid as part of an url. Please see my original post.

@BirgitBoss
Copy link
Contributor

You are right, sorry for the confusion

@martafullen martafullen transferred this issue from admin-shell-io/aasx-package-explorer Feb 16, 2024
@martafullen martafullen transferred this issue from another repository Feb 21, 2024
@juileetikekar juileetikekar added the Needs: Triage Needs sorting label Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Triage Needs sorting
Projects
None yet
Development

No branches or pull requests

3 participants