Skip to content

add props onAddEnum and onDeleteEnum#41

Merged
lovasoa merged 4 commits into
lovasoa:mainfrom
sozdayka:feature/add-enums-events
Apr 21, 2026
Merged

add props onAddEnum and onDeleteEnum#41
lovasoa merged 4 commits into
lovasoa:mainfrom
sozdayka:feature/add-enums-events

Conversation

@sozdayka
Copy link
Copy Markdown
Contributor

Expose optional onAddEnum and onDeleteEnum callbacks on JsonSchemaEditor and SchemaVisualEditor so consumers can react when users add or remove enum values in the visual editor. Callbacks receive a single context object (value, index, schemaKey) instead of positional arguments, which keeps the API easy to extend.

schemaKey is a path-like string to the edited field (not only the immediate property name), so nested properties, items, and combinator branches stay unambiguous.

@lovasoa lovasoa merged commit 087a596 into lovasoa:main Apr 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants