You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What about some kind of Definition generation direct from Schema? It can be useful for implement some business logic depend on defined schema. Maybe something like this:
// Some kind of input processing in presenter$input = (newUberUserInput('id', $_GET))->setSchema(Expect::integer()->required());
try {
$input->validate();
} catch (...) { ... }
// Generating form for user input$form = newForm();
$form->addText($input->getName());
if ($input->getSchemaDefinition()->isRequired()) {
$form[$input->getName()]->setRequired();
}
The text was updated successfully, but these errors were encountered:
What about some kind of Definition generation direct from Schema? It can be useful for implement some business logic depend on defined schema. Maybe something like this:
Basic type:
Array:
Example usage:
The text was updated successfully, but these errors were encountered: