Skip to content

Support for optional & recommended NXDL attributes#51

Open
takluyver wants to merge 1 commit intonexpy:mainfrom
takluyver:optional-recommended
Open

Support for optional & recommended NXDL attributes#51
takluyver wants to merge 1 commit intonexpy:mainfrom
takluyver:optional-recommended

Conversation

@takluyver
Copy link

According to the NXDL docs, an optional="true" attribute on a field or a group "is equivalent to minOccurs=0", while recommended="true" is "A synonym for optional, but with the recommendation that this field be specified."

This avoids recording an error in these cases, with a warning for recommended items. I have tested this by validating a file with the [NXmx application definition], and I get fewer errors after the change, with some of them replaced by warnings.

Closes #50

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

Successfully merging this pull request may close these issues.

nxinspect ignores 'optional' and 'recommended' attributes in NXDL

1 participant