Skip to content

Commit ae4d593

Browse files
committed
fix: update environment schema descriptions and types
Signed-off-by: amitamrutiya <[email protected]>
1 parent fb751c5 commit ae4d593

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/schemas/createAndEditEnvironment/schema.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1+
import { EnvironmentDefinitionV1Beta1OpenApiSchema } from '@layer5/schemas';
2+
3+
const environmentSchema = EnvironmentDefinitionV1Beta1OpenApiSchema.components.schemas;
14
const createAndEditEnvironmentSchema = {
25
title: 'Environment',
36
required: ['name'],
47
properties: {
58
description: {
6-
description:
7-
'An environment is a collection of resources, such as connections & credentail. Provide a detailed description to clarify the purpose of this environment and the types of resources it encompasses. You can modify the description at any time. Learn more about environments [here](https://docs.meshery.io/concepts/logical/environments).',
9+
description: environmentSchema.environmentPayload.properties.name.description,
810
format: 'textarea',
911
title: 'Description',
10-
type: 'string',
12+
type: environmentSchema.environmentPayload.properties.name.type,
1113
'x-rjsf-grid-area': '12'
1214
},
1315
name: {
14-
description:
15-
'An environment is a collection of resources. Provide a name that meaningfully represents these resources. You can change the name of the environment even after its creation.',
16+
description: environmentSchema.environmentPayload.properties.description.description,
1617
title: 'Name',
17-
type: 'string',
18+
type: environmentSchema.environmentPayload.properties.description.type,
1819
'x-rjsf-grid-area': '12'
1920
},
2021
organization: {
21-
type: 'string',
22+
type: environmentSchema.environmentPayload.properties.OrganizationID.type,
2223
title: 'Organization',
23-
description:
24-
'Select an organization in which you want to create this new environment. Keep in mind that the organization cannot be changed after creation.',
24+
description: environmentSchema.environmentPayload.properties.OrganizationID.description,
2525
enum: [],
2626
enumNames: [],
2727
'x-rjsf-grid-area': '12'

0 commit comments

Comments
 (0)