You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/07/23 13:33:29 UTC

[GitHub] [pulsar] bry00 commented on issue #4271: Pulsar Avro Schema Enum improvement request

bry00 commented on issue #4271:
URL: https://github.com/apache/pulsar/issues/4271#issuecomment-885642406


   > the problem here is that `MyEnum` is really of Python type `Enum`. That enum might be defined elsewhere in the application (or might be coming from a library), therefore we cannot count on passing `required=True` there.
   > 
   > We would have to add a `c = pulsar.schema.Enum(MyEnum, required=True)`
   
   Is there any chance to add Enum field supporting properly `required` and `default` parameters?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org