@harnessio/react-integration-manager-client 0.4.16 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaMutation.d.ts +1 -1
- package/dist/integration-manager/src/services/hooks/useValidateCustomSchemaMutation.js +1 -1
- package/dist/integration-manager/src/services/schemas/IntegrationconfigValidateCustomSchemaResponse.d.ts +0 -1
- package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaOrgRequest.d.ts +2 -3
- package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaOrgRequest.js +0 -3
- package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaProjectRequest.d.ts +2 -3
- package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaProjectRequest.js +0 -3
- package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaRequest.d.ts +2 -3
- package/dist/integration-manager/src/services/schemas/OpenapiValidateCustomSchemaRequest.js +0 -3
- package/package.json +1 -1
|
@@ -15,6 +15,6 @@ export interface ValidateCustomSchemaProps extends ValidateCustomSchemaMutationP
|
|
|
15
15
|
}
|
|
16
16
|
export declare function validateCustomSchema(props: ValidateCustomSchemaProps): Promise<ValidateCustomSchemaOkResponse>;
|
|
17
17
|
/**
|
|
18
|
-
* Validates a custom JSON schema for correctness before saving. Checks structure,
|
|
18
|
+
* Validates a custom JSON schema for correctness before saving. Checks structure, optional fields (identifier, name, timestamp) shape, property types, nesting depth (max 2), property count (max 200 per object), and JSON Schema composition keywords (allOf, anyOf, oneOf, not). Returns HTTP 200 if valid, HTTP 400 with all collected errors if invalid.
|
|
19
19
|
*/
|
|
20
20
|
export declare function useValidateCustomSchemaMutation(options?: Omit<UseMutationOptions<ValidateCustomSchemaOkResponse, ValidateCustomSchemaErrorResponse, ValidateCustomSchemaProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ValidateCustomSchemaOkResponse, ApierrorsErrorResponse, ValidateCustomSchemaProps, unknown>;
|
|
@@ -7,7 +7,7 @@ export function validateCustomSchema(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/api/v1/accounts/${props.accountIdentifier}/integration-configs/validate-schema`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Validates a custom JSON schema for correctness before saving. Checks structure,
|
|
10
|
+
* Validates a custom JSON schema for correctness before saving. Checks structure, optional fields (identifier, name, timestamp) shape, property types, nesting depth (max 2), property count (max 200 per object), and JSON Schema composition keywords (allOf, anyOf, oneOf, not). Returns HTTP 200 if valid, HTTP 400 with all collected errors if invalid.
|
|
11
11
|
*/
|
|
12
12
|
export function useValidateCustomSchemaMutation(options) {
|
|
13
13
|
return useMutation((mutateProps) => validateCustomSchema(mutateProps), options);
|
package/package.json
CHANGED