Skip to content

Parse Server options should set default #8202

Open
@dblythy

Description

@dblythy

New Feature / Enhancement Checklist

Current Limitation

Currently, to add Parse Server options, developers have to add validation for the variable type, as well as set the default. The error messages for if a variable doesn’t enforce a type is inconsistent. And, you cannot set environment variables to deep Parse Server options. Overall, it needs some TLC.

Feature / Enhancement Description

All this information is already typed in the definitions, so the type and default should be automatically set. The only custom validation should be for stricter rules, such as checking that a parameter is greater than 0, for example.

Example Use Case

Creating a new server option would require much less code if the type handling and defaults were handled internally.

Alternatives / Workarounds

Related: #7151

3rd Party References

n/a

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions