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

constant_variable needs to support record datatype #62

Open
zport opened this issue Jan 14, 2019 · 0 comments
Open

constant_variable needs to support record datatype #62

zport opened this issue Jan 14, 2019 · 0 comments

Comments

@zport
Copy link
Contributor

zport commented Jan 14, 2019

@djhaynes commented on Fri Aug 16 2013

In adding support for the new record datatype we neglected to update the
constant_variable to allow it to hold a record. The current
<constant_variable> structure allows a sequence of elements
and looks like this:

<constant_variable id="oval:example:var:111" datatype="int" ...>
   <value>1</value>
   <value>2</value>
<constant_variable>

This structure needs to be updated to allow each value to be a record. Values
are currently limited to simple types(xsd:anySimpleType). In order for
variables to fully support the new record datatype the element
needs to optionally allow named fields. This might look something like:

<constant_variable id="oval:example:var:111" datatype="record" ...>
    <record>
        <field name="name" datatype="string">user1</field>
        <field name="screensavertimeout" datatype="int">900</field>
    </record>
    <record>
        <field name="name" datatype="string">user2</field>
        <field name="screensavertimeout" datatype="int">600</field>
    </record>
</constant_variable>  

@djhaynes commented on Fri Aug 16 2013

This same issue also applies to external_variable and possibly the literal_component constructs.


@djhaynes commented on Fri Aug 16 2013

Due to the impact of this change we will defer this feature until a later release. It will not be included in version 5.7.


@solind commented on Tue Aug 30 2016

Punting to 5.12.

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