Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
J
JsonConfig
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Michael Wieland
  • JsonConfig
  • Wiki
  • Configuration Template

Last edited by Programie Dec 20, 2014
Page history

Configuration Template

You have to define a configuration template which defines which config paths are valid and which are the default values of them.

The template is a JSON file containing a map for all config paths.

Each path is a property containing a map with the property "defaultValue". The map might be extended with more properties in future versions.

The "defaultValue" property is optional. But either a default value or a user defined value in the configuration file must be set, otherwise an UnsetConfigValueException will be thrown on call of the getValue() method.

Example structure

Structure

Note: Trying to retrieve or set a value with a path not defined in the template will fail with an UnknownConfigValueException.

Clone repository
  • Configuration Template
  • Examples
  • Home
  • Structure