docs: Fix typos

Signed-off-by: Gabriel Dugny <gabriel.dugny@believe.com>
This commit is contained in:
Gabriel Dugny
2025-04-18 17:03:01 +02:00
parent 222b18a67f
commit 14bddfd10f
20 changed files with 28 additions and 26 deletions
@@ -118,7 +118,7 @@ export const mockDecorator = createScaffolderFormDecorator({
// give the decorator a name
id: 'mock-decorator',
// define the schema for the input that can be proided in `template.yaml`
// define the schema for the input that can be provided in `template.yaml`
schema: {
input: {
test: z => z.string(),
@@ -151,7 +151,7 @@ const routes = (
### Async Validation Function
A validation function can be asyncronous and use [Utility APIs](https://backstage.io/docs/api/utility-apis/) via the `ApiHolder` in the [field validation context](https://backstage.io/docs/reference/plugin-scaffolder-react.customfieldvalidator). The example below uses the `catalogApiRef` to check if the submitted value (in this scenario an entity ref) exists in the catalog.
A validation function can be asynchronous and use [Utility APIs](https://backstage.io/docs/api/utility-apis/) via the `ApiHolder` in the [field validation context](https://backstage.io/docs/reference/plugin-scaffolder-react.customfieldvalidator). The example below uses the `catalogApiRef` to check if the submitted value (in this scenario an entity ref) exists in the catalog.
```tsx
import { FieldValidation } from '@rjsf/utils';
@@ -252,7 +252,7 @@ spec:
type: service
parameters:
- title: Authenticaion
- title: Authentication
description: Provide authentication for the resource
required:
- username