morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
blank_as.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2
3#pragma once
4
5/// @file forms/blank_as.hpp
6/// @brief `morph::forms::BlankAs`: what a blank string field submits.
7///
8/// Its own header because both the schema emitters (`forms.hpp`) and the forms engine's field model
9/// (`forms/engine/field_model.hpp`) name it, and the field model must not include the emitters.
10
11#include <cstdint>
12
13namespace morph::forms {
14
15/// @brief What a renderer submits for a string field the user left blank
16/// (`FieldMeta::blankAs`).
17enum class BlankAs : std::uint8_t {
18 /// Blank is "no value": the member is left out of the payload (the default).
20 /// Blank, once the field was prefilled or edited, is an explicit `""`;
21 /// emitted as `"x-blankAs": "empty"`.
23};
24
25} // namespace morph::forms
BlankAs
What a renderer submits for a string field the user left blank (FieldMeta::blankAs).
Definition blank_as.hpp:17
@ Omit
Blank is "no value": the member is left out of the payload (the default).
Definition blank_as.hpp:19