Skip to content

Markdown validation conversion for bounds and element bounds wrong #253

Open
@JulianKu

Description

@JulianKu

When using bounds<> (e.g. bounds<>: [0, 10]) or element_bounds<> (e.g. element_bounds<>: [0.0, 1.0]) they are wrongly outputted to Markdown using generate_parameter_library_markdown.

In the outputted markdown it will simply put (for bounds)

parameter must be within bounds 0

and (for element_bounds):

each element of array must be within bounds 0.0

If instead, these are put in double square brackets, the Markdown output is wrong but the CPP conversion fails...

I would guess that this comes from using arguments[0] in here

        if validation.__contains__('VALUES'):
            validation = validation.replace('VALUES', str(arguments[0]))
        elif arguments:
            validation += ': ' + str(arguments[0])

Metadata

Metadata

Assignees

No one assigned

    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