Skip to content

feat: modify protons decoder to apply limits to repeated fields at decode time #113

Description

@maschad

The length of repeated fields should be optionally limited by a field option named limit.

message Foo {
	repeated string bar = 1 [limit = 1000]
}
import { Foo } from './foo.js

const foo = {
	bar: new Array(1001).fill('')
}

Foo.encode(foo) // will error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions