TypeAware / oredoc

Node.js ApiDoc generator (programmatic)
MIT License
1 stars 0 forks source link

generate random types by uuid #1

Open ORESoftware opened 5 years ago

ORESoftware commented 5 years ago
exports.entities = {
  all: {
    prop: [{foo:'bar', zoom: 'star'}]
  }
}

and that will generate something like:

class Private {
   public static class 9393330930535353 {
        String foo = "bar";
        String zoom = "star";
   }
}

however, what might be better is:

exports.entities = {
  all:  {
    prop: set(arrayType, [
       'ArrayList', 'Entities.Foo.Bar', 'Entities.Foo.Inner'
     ]
  })
}

which would then become:

public class Entities {
   public static class Foo {
     public static class Bar { ...  } 
     public static class Inner { ...  } 
 }
}

and the left hand side would look like:

ArrayList<Entities.Foo.Bar<Entities.Foo.Inner>> all;