diff --git a/.github/workflows/generate_schemas.yml b/.github/workflows/generate_schemas.yml index e1766d280..7eba684c4 100644 --- a/.github/workflows/generate_schemas.yml +++ b/.github/workflows/generate_schemas.yml @@ -63,13 +63,13 @@ jobs: name: sdk-schemas-json path: ${{ github.workspace }}/support/schemas/* if-no-files-found: error - + - name: Upload Go schemas artifact uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: name: schemas.go path: ${{ github.workspace }}/languages/go/schema.go - + - name: Upload java schemas artifact uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 with: diff --git a/support/scripts/schemas.ts b/support/scripts/schemas.ts index 27ad77d4b..98c0c39cb 100644 --- a/support/scripts/schemas.ts +++ b/support/scripts/schemas.ts @@ -70,8 +70,6 @@ async function main() { writeToFile("./languages/csharp/Bitwarden.Sdk/schemas.cs", csharp.lines); - writeToFile("./languages/csharp/schemas.cs", csharp.lines); - const go = await quicktype({ inputData, lang: "go", @@ -80,8 +78,9 @@ async function main() { "just-types-and-package": true, }, }); + writeToFile("./languages/go/schema.go", go.lines); - + const java = await quicktypeMultiFile({ inputData, lang: "java",