Skip to content

Allow overwriting model properties via json files #18

@bernt-matthias

Description

@bernt-matthias

One might have a json file that stores curated information that helps aclimatise's parser, e.g.

{
    'parameter1': {
         'property1': 'value',
         'property2': 2
    },
    ...
}

would overwrite property1 and property2 in aclimatise's internal representation of parameter1. A simple example would be to overwrite help text, default values, file types.

With an appropriate 'encoding' also the parameter type might be changed:

{
    'parameter1': {
         '--TYPE--': 'CliFloat'
    },
    ...
}

could overwrite aclimatise's (wrong) guess of the parameter type (I suggest to use -- prefix since this should be an impossible name prefix).

In this way also hardcoding parameters, or removing parameters could be done via special parameter classes, e.g. CliHardcoded, CliNull (I try not to use the term blacklist here).

In the same way (with separate json files) also properties in the generated languages would be possible. Eg. a json file like the first exampe might overwrite/add attributes 'property1' and 'property2' of the xml tag with name="parameter1".

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions