Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
055adfc
Small fixes to existing generators
aorabdel Mar 28, 2025
9b401b5
PoC for link followers generator
aorabdel Mar 28, 2025
d1fe76a
Refactor Link Follower Extension
aorabdel Mar 28, 2025
01cac81
Remove hardcoded FollowLink definitions
aorabdel Mar 28, 2025
d4fdf1a
Use client package import path instead of relative path
aorabdel Mar 28, 2025
d502f10
Add news file
aorabdel Mar 28, 2025
c38705e
Add generation test
aorabdel Mar 28, 2025
13597f2
Fix first parameter type for service function
aorabdel Mar 28, 2025
4323b9f
:sparkles: Automatic changes -> ✨ New server autogenerated files [ci …
aorabdel Mar 28, 2025
19b1b59
:sparkles: Automatic changes -> 👷 Golang version updates [ci skip]
aorabdel Mar 28, 2025
4dd5855
Address review comments
aorabdel Mar 28, 2025
cd083eb
:sparkles: Automatic changes -> ✨ New server autogenerated files [ci …
aorabdel Mar 28, 2025
f97fbf2
:sparkles: Automatic changes -> 👷 Golang version updates [ci skip]
aorabdel Mar 28, 2025
046bac5
⬆️ Bump golang from 1.23.5 to 1.24.1 (#74)
dependabot[bot] Mar 28, 2025
abdee5d
🚀 releasing version 1.45.1 @ 2025-03-28 15:04
monty-bot Mar 28, 2025
bc07a21
:sparkles: Automatic changes -> ✨ New server autogenerated files [ci …
aorabdel Mar 28, 2025
a31d760
Fix `//nolint` position
aorabdel Mar 28, 2025
e9902d7
Trigger CI
aorabdel Mar 28, 2025
406e07f
Merge branch 'main' into client_generator
aorabdel Mar 28, 2025
fec1926
:sparkles: Automatic changes -> ✨ New server autogenerated files [ci …
aorabdel Mar 28, 2025
e7d75cc
:sparkles: Automatic changes -> 👷 Golang version updates [ci skip]
aorabdel Mar 28, 2025
771bb75
Fix linter issues in generated file
aorabdel Mar 28, 2025
d40d243
:sparkles: Automatic changes -> ✨ New server autogenerated files [ci …
aorabdel Mar 28, 2025
e1b3599
:sparkles: Automatic changes -> 👷 Golang version updates [ci skip]
aorabdel Mar 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/update-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
go mod tidy
go run main.go -i ../all-service-definition/all-def-flat.yaml -o ../extensions/extension_entities.gen.go -t templates/entities.go.tmpl -g collections
go run main.go -i ../all-service-definition/all-def-flat.yaml -o ../extensions/extension_jobs.gen.go -t templates/jobs.go.tmpl -g jobs
go run main.go -i ../all-service-definition/all-def-flat.yaml -o ../extensions/extension_link_followers.gen.go -t templates/linkfollowers.go.tmpl -g links
- name: Copy extensions to client
run: |
if [ -d ./extensions/ ] ; then cp -r extensions/. ${{ env.go_module }}/ ; fi
Expand Down
1 change: 1 addition & 0 deletions changes/20250328143030.feature
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to stop the CI from doing this on every commit

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:sparkles: Extend the code generator for Collections by extending their functionality to follow links
1 change: 1 addition & 0 deletions changes/20250328152148.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated client due to schema changes
1 change: 1 addition & 0 deletions changes/20250328182830.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated client due to schema changes
1 change: 1 addition & 0 deletions changes/20250328185439.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated client due to schema changes
1 change: 1 addition & 0 deletions changes/20250328212543.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updated client due to schema changes
158 changes: 0 additions & 158 deletions client/extension_builders_link.go

This file was deleted.

158 changes: 0 additions & 158 deletions client/extension_buildjobs_link.go

This file was deleted.

10 changes: 0 additions & 10 deletions client/extension_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,3 @@ func (c *APIClient) PrepareRequest(
func (c *APIClient) CallAPI(request *http.Request) (*http.Response, error) {
return c.callAPI(request)
}

// wrapParameterAddToHeader wraps wrapParameterAddToHeaderOrQuery to avoid future breaking changes.
func wrapParameterAddToHeader(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) {
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, obj, "simple", collectionType)
}

// wrapParameterAddToQuery wraps wrapParameterAddToHeaderOrQuery to avoid future breaking changes.
func wrapParameterAddToQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) {
parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, obj, "form", collectionType)
}
Loading