Skip to content

Feature:Less strict RecordBuilder #46

@atimin

Description

@atimin

Current problem

I need to initialize the type of a record otherwise I have a null exception during Bucket.writeRecord.

        Record record = Record.builder()
                .entryName("sensor-1")
                .timestamp(timestamp)
                .type("application/octet-stream")
                .body("Record #1".getBytes())
                .build();

Possible solution

The default content type is "application/octet-stream". Additionally let's rename it to content_type as it is called in the other SDKs.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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