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

service module schemas should have flat directory structure #1188

Open
zhuxw opened this issue Jun 26, 2024 · 0 comments
Open

service module schemas should have flat directory structure #1188

zhuxw opened this issue Jun 26, 2024 · 0 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature pending-discussion

Comments

@zhuxw
Copy link

zhuxw commented Jun 26, 2024

What would you like to be added?

Service module schemas should have flat directory structure. For example, the following is preferred:

'''
import service as s

app := AppConfiguration {
workload: s.Service {
containers: s.Container {
readinessProbe: s.Probe {
}
}
}
}
'''

Instead of having to remember inner path of every schema:

'''
import service as s
import service.container as c
import service.container.probe as p

app := AppConfiguration {
workload: s.Service {
containers: c.Container {
readinessProbe: p.Probe {
}
}
}
}
'''

Why is this needed?

Reduce the lines of code one has to write to use a module. Lower cognitive load.

@zhuxw zhuxw added the kind/feature Categorizes issue or PR as related to a new feature label Jun 26, 2024
@liu-hm19 liu-hm19 added this to the v0.13.0 milestone Aug 5, 2024
@liu-hm19 liu-hm19 self-assigned this Aug 23, 2024
@liu-hm19 liu-hm19 removed this from the v0.13.0 milestone Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature pending-discussion
Projects
None yet
Development

No branches or pull requests

3 participants