Skip to content

Consider no_default_values_in_constructor: true for generated Scala sources #335

@arosien

Description

@arosien

By default, ScalaPB generates default values for required fields, therefore making them optional to the user. This behavior can be disabled via:

import "scalapb/scalapb.proto";

option (scalapb.options) = {
  no_default_values_in_constructor: true;
};

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions