Releases: alpancs/protoc-gen-pubsub-schema
Releases · alpancs/protoc-gen-pubsub-schema
v1.6.0
v1.5.0 Preserve Package
Changelog
- Preserving package name
Fix Non-nested Enum Bug
v1.4.4 Release Note
Fix
- Non-nested enum definitions were not generated.
Changelog
- Separate
enum Role
from nested type insidemessage User
into a different file. - Refactor message builder implementation.
Handle Enumerations
Fixes
- Handle Enum properly (previously treated enum as a scalar type)
Refactor
- Refactor the implementation of content builder: avoid debts
DO NOT EDIT Comment
Added DO NOT EDIT comment in the generated files.
Type Naming Refinement
This release refines the type naming for nested types, for example, the type name ExampleUserAddCommentUser
becomes User
.
Updated Terms and Bug Fixes
Updated terms
- output file extension from
.pubsub.proto
to.pps
(pubsub proto schema) - protoc param from
--pubsub-schema_opt=encoding=...
to--pubsub-schema_opt=message-encoding=...
- protoc param from
--pubsub-schema_opt=syntax=...
to--pubsub-schema_opt=schema-syntax=...
Bug fixes
- Duplicate nested type definitions in a single message type
Default Output in proto2 Syntax
Generated proto files are now using "proto2" syntax by default.
To get output in "proto3" syntax, use protoc param --pubsub-schema_opt=syntax=proto3
. See README.md for the usage.
JSON Encoding Support
New features:
- added
--pubsub-schema_opt=encoding=json
protoc param to generate output that accepts JSON encoding
Error Message Refinement
This release refines the error message when protoc-gen-pubsub-schema
processes a file that doesn't contain exactly one message type.