
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
@zaiusinc/app-forms-schema
Advanced tools
This repo contains the schema definition for Zaius app forms.
yarn add @zaius/app-forms-schema
Then you can reference the forms interfaces or use the JSON schema to validate a defined form.
Apps include a definition of their form in the app package. Another Zaius forms library will render the form from the definition and populate it with data from the app install's secret store. User interactions, such as save/submit will send the updated data to the app, whos responsibility is to process and/or save that data.
See examples/
Apps have a lifecycle method for form submission. The method receives:
The app also has access to all the other secret data stored by the form which can be used to validate data across sections.
The app is responsible for processing/saving the form data. The SDK will provide a helper to store all or a subset of the data into the secret store so that in the simplest case, the lifecycle function will simply store all the submitted data into the secret store.
When processing the form data, the app should update any other secret values needed for operation or for visual changes to the form. By simply updating a value in the secret store, the form can change it's layout/appearance.
The App will return a status code to indicate success (2xx) or failure (4xx). It will also return a payload in a structure similar to the following for error handling on the form:
{
"toast": {
"intent": "Error",
"message": "Authentication failed, please check your credentials and try again."
},
"errors": [
{"field": "auth.secret", "message": "Your username/secret was not accepted"}
]
}
The backend to the app store UI will be responsible for fetching the form data and changes to the form data after each submission. This ensures the app does not need to worry about returning changes or masking sensitive information.
FAQs
This repo contains the schema definition for OCP app forms.
The npm package @zaiusinc/app-forms-schema receives a total of 194 weekly downloads. As such, @zaiusinc/app-forms-schema popularity was classified as not popular.
We found that @zaiusinc/app-forms-schema demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.