Files
Artem Goncharov b7b7cd845e feat(rust-tui): Emit EDITOR_TEMPLATE const on generated request structs
Render a commented YAML create/edit-via-editor template from the same
raw OpenAPI request-body schema dict BODY_SCHEMA already serializes:
required fields uncommented, optional commented out, enum values and
descriptions inlined as comments. Lets TUI resources build their
editor_template() from generated field metadata instead of hand-listing
every field.

Extend the GeneratedResourceBehaviour mechanical tier with the three
editor-flow methods, built from a resource's EDITOR_TEMPLATE/BODY_SCHEMA
consts and its create operation's request type. Opt-in per resource via
extensions.rust-tui-view.editor, since those consts only exist on
create structs already regenerated with them. security_group_rule is
the first resource opted in.

Change-Id: I2581550690b6c75c4afe9bea361c5c56a514de22
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
2026-08-11 16:15:50 +02:00
..