apache / apache/daffodil-vscode

Some DFDL attributes can be used only if certain rules are met develop a method to enforce the rules in the editor

Open
#638 2 comments 0 reactions 5 assignees Claimed by @michael-hoke View on GitHub
code completion enhancement requirements
Dominant language
TypeScript
Stars
18
Forks
33
Avg merge
3d 6h
Merged PRs (30d)
7

Description

Some DFDL attributes can be used only if certain rules are met. Develop a method to enforce the rules in the editor.
Non-comprehensive listing of attribute rules:
[DFDLAttributeRules.xlsx](https://github.com/apache/daffodil-vscode/files/11516248/DFDLAttributeRules.xlsx)
Edited: 01-29-2026
The most comprehensive list of DFDL attribute rules is src/language/dfdl-xref/DFDL_Schema_Definition_Errors.MD
One method to implement some of the rules is to mimic the code for the "group" parent element case for the "appinfo" element in the function nearestOpenTagChildElements() in the source file src/language/providers/elementCompletion.ts.
Below is an screen capture of the code:
_This case handles a rule where the "newVariableInstance" attribute is not allowed when the parent of "annotation"/"appinfo" is "group" with a "ref" attribute._

Image

Image

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.