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

Configuration chain #137

Open
tpluscode opened this issue Jul 31, 2024 · 0 comments
Open

Configuration chain #137

tpluscode opened this issue Jul 31, 2024 · 0 comments

Comments

@tpluscode
Copy link
Contributor

Once we load an API description, it should be the default behaviour and easy to use option for implementors to cascade configuration option, bottom-up.

Given a tree structure like

<Config> kopflos:api <Api> .

<Api> ^schema:isPartOf <ResourceShape> .

<ResourceShape> kopflos:handler <ResourceHandler> .

<ResourceShape> sh:property/kopflos:handler <PropertyHandler> .

it should be easy to look up a property by traversing from leaf to root PropertyHandler -> ResourceHandler -> ResourceShape -> Api -> Config.

If a property, like kopflos:resourceLoader, is not found on one level, try higher. If the Config resource does not have a value, we might resort to a config file for fallback and finally a global default.

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