Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Relay Formalize Bundle Laravel Package

dbp/relay-formalize-bundle

View on GitHub
Deep Wiki
Context7

Form Schema

The form schema is defined by a JSON schema. It can be defined by setting the dataFeedSchema attribute of a form.

JSON Data Schema

The schema for the JSON data, i.e. the dataFeedElement of a submission, is fully covered by a standard JSON schema with a few custom extensions:

Example:

{
 "type":"object",
 "properties": {
   "givenName": { 
     "type": "string",
     "localizedName": {
       "de": "Vorname",
       "en": "Given name"
     },
     "tableViewVisibleDefault": false
   },
   "familyName": {
     "type": "string",
     "localizedName": {
       "de": "Nachname",
       "en": "Family name"
     },
     "tableViewVisibleDefault": true
   }
 },
 "required":["givenName", "familyName"],
 "additionalProperties": false
}

Extensions:

  • localizedName: a JSON object that consists of key-value pairs, where the keys are language codes, and the values are the translated names of this property
  • tableViewVisibleDefault: a JSON bool that indicates whether the column representing this property should be visible in the submissions table view by default

File Data Schema

The file data schema is defined by a custom files section in the JSON schema of the form, which defines a mapping between file property names and their schema:

{
 "files": {
   "birthCertificate": {
     "allowedMimeTypes": [ "application/pdf", "image/jpeg" ],
     "maxSizeMb": 10
   },
   "photos": {
     "minNumber": 0,
     "maxNumber": 10,
     "allowedMimeTypes": [ "image/png", "image/jpeg" ],
     "maxSizeMb": 10
   }
 },
 "additionalFiles": false
}
  • maxSizeMb The maximum file size in megabytes. Default: 10
  • minNumber The minimum number of files with for this file property, 0 meaning it's optional. Default: 1
  • maxNumber The minimum number of files with for this file property. Default: 1
  • allowedMimeTypes The list of allowed mimetypes for this file property. Default: [] (None)
  • additionalFiles If set to true, additional file properties, which are not defined in the files section are allowed. Default: false

Input Validation

Submissions are always validated against a JSON schema. If a submission does not comply to the form schema, a Bad Request 400 error status is returned.

If the form schema is not set when a submission is posted, the schema is autogenerated based on the submission data. Subsequent submissions will be validated against that schema.

Output Validation

Output validation is available for the get submissions endpoint, and can be requested by specifying the outputValidation query parameter:

  • KEYS Means that only those data values are returned, whose keys are defined in the form schema
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
bugban/symfony
beyonder-capi/workflow-extensions-bundle
beyonder-capi/job-queue-bundle
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin