From ef6990cf35f480d7f0a6479d5cc2058d394d8a2b Mon Sep 17 00:00:00 2001 From: "Michael Maeng (AWS)" <83842446+mmaeng@users.noreply.github.com> Date: Fri, 6 Jan 2023 21:44:56 +0000 Subject: [PATCH] chore(init) - reload example schema after init (#962) --- src/rpdk/core/hook/init_hook.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rpdk/core/hook/init_hook.py b/src/rpdk/core/hook/init_hook.py index 308719b0..279bf1c0 100644 --- a/src/rpdk/core/hook/init_hook.py +++ b/src/rpdk/core/hook/init_hook.py @@ -32,6 +32,9 @@ def init_hook(args, project): project.init_hook(type_name, language, settings) project.generate(args.endpoint_url, args.region, args.target_schemas, args.profile) + # Reload the generated example schema + project.load_configuration_schema() + # generate the docs based on the example schema loaded project.generate_docs()