From 2f14a99b556135dca86afea11a55793deb442497 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 13 Aug 2023 11:17:02 -0400 Subject: [PATCH] build: refactor jane to use openapi file from git submodule --- .gitmodules | 3 +++ .jane-openapi | 2 +- braze-specification | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 braze-specification diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..28cd7e5 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "braze-specification"] + path = braze-specification + url = https://github.com/braze-community/braze-specification.git diff --git a/.jane-openapi b/.jane-openapi index 19c8dca..c547c7d 100644 --- a/.jane-openapi +++ b/.jane-openapi @@ -5,6 +5,6 @@ declare(strict_types=1); return [ 'directory' => __DIR__ . '/lib', 'namespace' => 'Braze', - 'openapi-file' => 'https://raw.githubusercontent.com/braze-community/braze-specification/master/openapi/spec.json', + 'openapi-file' => __DIR__ . '/braze-specification/openapi/spec.json', 'use-fixer' => true, ]; diff --git a/braze-specification b/braze-specification new file mode 160000 index 0000000..104542a --- /dev/null +++ b/braze-specification @@ -0,0 +1 @@ +Subproject commit 104542ae7238ff9bbc4e0b501358d4cf1b567e06