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

Consider using the JSON schema file name as default namespace #45

Open
glopesdev opened this issue Oct 1, 2024 · 0 comments
Open

Consider using the JSON schema file name as default namespace #45

glopesdev opened this issue Oct 1, 2024 · 0 comments
Labels
proposal Request for a new feature

Comments

@glopesdev
Copy link
Member

In practice for complex projects we always require namespaces in files when processing multiple JSON schema files. To prevent name clash the best practice is to provide an explicit namespace when calling bonsai.sgen. However, this can be error prone and hard to remember. The current default namespace is also not great.

A better default might be to simply use the name of the .json file (without extension) as the default namespace name if no explicit namespace is passed in the CLI. That would greatly improving the experience and also prevent nameclash as long as all .json files are placed in the same folder (since no two files can have the same name in the same folder).

@glopesdev glopesdev added the proposal Request for a new feature label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Request for a new feature
Projects
None yet
Development

No branches or pull requests

1 participant