marvin-zhao / pyang

Automatically exported from code.google.com/p/pyang
0 stars 0 forks source link

yang type empty causes invalid relax-ng to be generated #103

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

yang source has type:empty, e.g.:

 81             leaf enable {                                                       
 82               type empty;                                                       
 83               mandatory true;                                                   
 84               description                                                       
 85                 "description";                              
 86             }  

What is the expected output? What do you see instead?

the output element should contain <empty/> indication

currently, the generated output is invalid:

<element name="module-name:enable"/>

Original issue reported on code.google.com by Klement.Sekera@gmail.com on 25 Mar 2014 at 2:01

GoogleCodeExporter commented 9 years ago

Original comment by mbj4...@gmail.com on 25 Mar 2014 at 3:55

GoogleCodeExporter commented 9 years ago
Fixed in revision 938.

Original comment by lada.lho...@gmail.com on 25 Mar 2014 at 4:57