Skip to content

schema with key or id "<url>" already exists #2071

@Ketec

Description

@Ketec

Describe the bug

It seems like the schema passed to the ajv instance is not cleared when a new update/schema is passed to the jsonForms with updated values.

image

This seems to come from
thisAjv.compile(action.schema); reusing existing instance and adding to it.

Expected behavior

Can pass in the same schema with updated values.

It should likely call removeSchema on update?

Steps to reproduce the issue

Schema root has $id.

{
  "$id": "something",
  "type": "object",
  "properties": {}
}

Screenshots

No response

In which browser are you experiencing the issue?

Version 107.0.5304.89 (Official Build) (64-bit)

Which Version of JSON Forms are you using?

3.0.0

Framework

Angular

RendererSet

Other (please specify in the Additional context field)

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions