fix s3 adapter

This commit is contained in:
dswbx
2025-02-14 11:42:26 +01:00
parent 9c38c8f2ad
commit 24e69eec90
6 changed files with 16 additions and 25 deletions

View File

@@ -225,12 +225,12 @@ export function FormContextOverride({
// especially useful for AnyOf, since it doesn't need to fully validate (e.g. pattern)
if (prefix) {
additional.root = prefix;
additional.setValue = (pointer: string, value: any) => {
ctx.setValue(prefixPointer(pointer, prefix), value);
};
additional.deleteValue = (pointer: string) => {
ctx.deleteValue(prefixPointer(pointer, prefix));
/*additional.setValue = (path: string, value: any) => {
ctx.setValue(prefixPath(path, prefix), value);
};
additional.deleteValue = (path: string) => {
ctx.deleteValue(prefixPath(path, prefix));
};*/
}
const context = {

View File

@@ -46,7 +46,7 @@ export default function JsonSchemaForm3() {
return (
<Scrollable>
<div className="flex flex-col p-3">
<Form
{/*<Form
onChange={(data) => console.log("change", data)}
onSubmit={(data) => console.log("submit", data)}
schema={{
@@ -68,7 +68,7 @@ export default function JsonSchemaForm3() {
className="flex flex-col gap-3"
validateOn="change"
options={{ debug: true }}
/>
/>*/}
{/*<Form
schema={{
@@ -249,12 +249,13 @@ export default function JsonSchemaForm3() {
</Form>*/}
{/*<CustomMediaForm />*/}
{/*<Form
<Form
schema={schema.media}
initialValues={config.media as any}
onSubmit={console.log}
validateOn="change"
/>*/}
options={{ debug: true }}
/*validateOn="change"*/
/>
{/*<Form
schema={removeKeyRecursively(schema.media, "pattern") as any}