SJSMP / Sjsmp-.Net

SJSMP implementation for .Net
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add enum type for properties/parameters #5

Open mikhail-barg opened 8 years ago

mikhail-barg commented 8 years ago

Should convert to something like

"protocol": {
   type: ["http", "https", "ftp", "sftp"],
   readonly: false
}
mikhail-barg commented 8 years ago

Currently using proposing syntax is problematic because we expect the value of type property to be a type name (i.e. a token), not a composite something. Writing checks in every possible place where type could appear (properties, method parameters and return types) looks really troublesome.