Commits

Author Commit Message Labels Comments Date
Jan Borsodi
Added new keyword for proto files, union, which is used specify that a message is a union. Internally it just sets the specific option, so the old way is still possible. The new keyword is only allowed when syntax=scope.
Jan Borsodi
proto: Made sure syntax option is set in the generator, without it it would only generate proto2 syntax. proto: scope syntax will now generate use "union" instead of "message" for messages which are marked as unions.
Jan Borsodi
proto: Added support for specifying 'all' in --type option to export all types.
Jan Borsodi
Fixed export of service definition if syntax=proto2 (e.g hob proto -s proto2 -t service), now commands are written as rpc and events are commented out.
Jan Borsodi
Added support for setting syntax in 'proto' command, default is now proto2.
Jan Borsodi
Added some tests for recursion and referencing messages.
Jan Borsodi
Updated how referenced messages are found to match the behaviour of protoc (Official Protocol Buffer).
Jan Borsodi
Added support for fetching a sub-item by name for all Element classes, either with getItem or subscripts. Checking for existance of an item is also possible with "name" in item.
Jan Borsodi
Fixed bug in path lookup when checking the children of the current item.
Jan Borsodi
Fixed detection of overlapping extension ranges, they are not allowed. Updated selftest to avoid extension range overlap.
Jan Borsodi
Fixed parsing of path items (identifers with dot in between) to only be allowed in certain places, it was currently allowed anywhere an identifer was allowed. Updated selftest to not use path in field name.
Jan Borsodi
Added detection of multiple fields with same number.
Jan Borsodi
js: Correctly delete "message" entry.
Jan Borsodi
js: Updated message-map structures to keep a tree structure of messages and reference them via a path (list of names). The reference will be updated with the actual message object when the app is built. This avoids duplication of message structures. This also places the command entries separate from the message entries. In addition the name of commands/events and type of message (message or enum) is added to the structures.
Jan Borsodi
js: Changed --js-test-framework option to just --test-framework. Kept the old one as an alias for compatibility.
Jan Borsodi
Changed the option for defining JSON unions from message_type=union to json_union=true.
Jan Borsodi
Fixed version matching in build_application.js, now it will match the version as long as the major version is the same, minor version may differ and it will pick the most recent one.
Jan Borsodi
Display the exception text with the JSON string.
Jan Borsodi
Indented some code to make it more readable.
Jan Borsodi
Fixed handling of nulls, regressed with new union code.
Jan Borsodi
Made sure pretty-printing of bool fields are displays as true/false.
Jan Borsodi
Added support for enums in pretty-printing, the name of the enum value is displayed among the original integer value. If no match is found it falls back to displaying the int value only.
Jan Borsodi
Added support for pretty-printing unions. Changed generation of message maps to include more information on messages and fields.
Jan Borsodi
Added display of enums to js test framework.
Jan Borsodi
Added display of message options in js test framework.
Jan Borsodi
Additional fixes in js templates related to enums.
Jan Borsodi
Fixed generation of js, rst-doc and proto to properly support enums.
Jan Borsodi
Fixed problems generating js framework when enums were used in fields.
Jan Borsodi
Don't include elements with empty name in path list and filter out Package.
Jan Borsodi
Introduce a callback when a symbol is resolved and use this to update the field.type to Int32 when an enum is used.
  1. Prev
  2. Next