Skip to content

Commit

Permalink
Merge pull request pleonex#52 from ph777/new/enumeration-annotation
Browse files Browse the repository at this point in the history
Add support for enumeration annotation
  • Loading branch information
pleonex authored Jun 11, 2018
2 parents b2ed427 + 5ad6d92 commit 37023dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/xsd.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ module.exports =
displayText: child.tagName
type: 'value'
rightLabel: 'Value'
description: child.description

## Called when suggestion requested for attributes.
getAttributes: (xpath) ->
Expand Down
3 changes: 2 additions & 1 deletion lib/xsdParser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@ module.exports =
type.xsdChildren.push group

for val in childrenNode.enumeration
doc = @getDocumentation val
group.elements.push {
tagName: val.$.value
xsdTypeName: null
description: ''
description: doc
minOccurs: 0
maxOccurs: 1
}
Expand Down

0 comments on commit 37023dc

Please sign in to comment.