Skip to content

Specify which properties are required #243

@esden

Description

@esden

It would be very helpful if the spec contained information about required properties. Required is currently only used for req, cmd properties as far as I can tell.

I am in the process of writing some code that can generate the full API for Rust directly from the json spec files, which would decrease effort duplication to keep things up to date.

Rust has the Option<> feature which allows us to have properties that are optional. It would be nice to know which properties are always required to be sent to the notecard as well as which properties can always be expected to be sent back from the notecard.

This way we can generate the API accurately and not just have to add Option<> to all properties no matter what.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions